Wierd Error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Wierd Error (/showthread.php?tid=8891) |
Wierd Error - El Forum - 06-04-2008 [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. Wierd Error - El Forum - 06-04-2008 [eluser]Rick Jolly[/eluser] Library is a reserved name, so it can't be used as a method name. http://ellislab.com/codeigniter/user-guide/general/reserved_names.html Wierd Error - El Forum - 06-04-2008 [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-guide/general/reserved_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. |