CodeIgniter Forums
Error message - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Error message (/thread-43864.html)



Error message - El Forum - 07-26-2011

[eluser]Unknown[/eluser]
Hello

I have a problem here whereby I need to run a hotspot application and I keep getting an error that says

Fatal error: Class 'Controller' not found in C:\xampp\htdocs\easyhotspot\htdocs\system\application\controllers\home.php on line 3

now I was just wondering is this a bug cause I haven't done anything to the code.

Thanks in advance
kagiso


Error message - El Forum - 07-26-2011

[eluser]danmontgomery[/eluser]
You should be extending CI_Controller, not Controller.

http://ellislab.com/codeigniter/user-guide/general/controllers.html


Error message - El Forum - 07-26-2011

[eluser]talentsfromindia[/eluser]
Yeah you should extend class CI_Controller it will work fine if their is no other bug in the program.


Error message - El Forum - 07-28-2011

[eluser]Unknown[/eluser]
OK noctrum I'll have a look at it, thank you very much!!!