problems running ci in php4 - extended classes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: problems running ci in php4 - extended classes (/showthread.php?tid=33792) |
problems running ci in php4 - extended classes - El Forum - 09-08-2010 [eluser]yabune[/eluser] Hi, I had a server problem, and temporarily I'm trying to run my CI site in another server with PHP4. But I'm getting some problems with extended classes. I'm getting this error: Quote:Fatal error: Call to a member function on a non-object in /home/.sites/148/site6/web/cresc2/application/libraries/MY_Controller.php on line 29 And my code is (i've marked the line that throws the error): Code: <?php Anyone knows why in php4, I can't call a parent function? Thank you! problems running ci in php4 - extended classes - El Forum - 09-08-2010 [eluser]danmontgomery[/eluser] The error says MY_Controller, your code says Base_Controller... problems running ci in php4 - extended classes - El Forum - 09-08-2010 [eluser]yabune[/eluser] my_controler.php is the name of the filename. what i use in the controllers is the base_controller. it works ok in php5. |