Wierd Error |
[eluser]bigg-media[/eluser]
I created this site on my local computer using WAMP with PHP 5. I moved it to my hosting server which is PHP4. I have numerous other CI sites hosted on this server with no issues whatsoever. In fact a large part of this site (other than the models) is a copy of a functioning site. In my main controller I am having issues. I have the database autoload, then in the controller I am calling the models. In my first function I can access the model methods just fine, but every other function throws an error anytime I reference a model method. Controller - Content Code: <? My Account Model Code: <? If I don't comment out the second function I get this error: Call to a member function on a non-object in /home/bmeaudio/public_html/portal/system/application/controllers/content.php on line 35 I have been chasing this problem all day and don't think I am any closer to a resolution than I was this morning. Really need some help on this one.
[eluser]Rick Jolly[/eluser]
Library is a reserved name, so it can't be used as a method name. http://ellislab.com/codeigniter/user-gui...names.html
[eluser]bigg-media[/eluser]
[quote author="Rick Jolly" date="1212628328"]Library is a reserved name, so it can't be used as a method name. http://ellislab.com/codeigniter/user-gui...names.html[/quote] You are a genius. I knew it was something simple, but have had my head down too long to think clearly. I appreciate the help. |
Welcome Guest, Not a member yet? Register Sign In |