Welcome Guest, Not a member yet? Register   Sign In
Strange Issue when trying to use a model?
#1

[eluser]Mischievous[/eluser]
I have created a config_model class that extends the model library to load site configuration for the rest of the controllers etc. etc. and it seems when i try to use this model I get an error generated by the url helper

Code:
Fatal error: Call to a member function slash_item() on a non-object in ..\system\helpers\url_helper.php on line 64

I've checked the line and its in the function base_url() that calls to $CI->config->slash_item('base_url')?? Not sure why it would be doing this? Its as if the CI instance isn't properly setting up. When I take the model out of autoload it disappears??

Any Thoughts?
#2

[eluser]danmontgomery[/eluser]
Is your config model overwriting the config library in $CI->config?




Theme © iAndrew 2016 - Forum software by © MyBB