![]() |
controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: controller (/showthread.php?tid=38774) |
controller - El Forum - 02-18-2011 [eluser]ann91[/eluser] hello.... i have a problem with this code.. <? class cars extends Controller{ function cars() { parent::Controller(); } function main(){ $this->load->view('cars_main'); } function input(){ $this->load->view('cars_input'); } } ?> when I run it in a web browser, an error occurs like this Class'Controller' not found in C: \ xampp \ htdocs \ framework \ system \ application \ controllers \ cars.php on line 3 there is a problem with the code above? controller - El Forum - 02-18-2011 [eluser]xerobytez[/eluser] What version of CI are you using? controller - El Forum - 02-18-2011 [eluser]Phil Sturgeon[/eluser] Are you doing this in CodeIgniter 2.0? Controller was renamed to CI_Controller as noted in the upgrade guide in the documentation. controller - El Forum - 02-22-2011 [eluser]ann91[/eluser] I use version CI 2.0 thank you about your informantion.. |