Why MY_Controller.php in application/libraries not work on CI2.0? |
[eluser]CodeIgniterStep.Com[/eluser]
Dear All, I have create MY_Controller.php in folder application/libraries/MY_Controller.php MY_Controller.php Code: class MY_Controller extends CI_Controller and I created sample.php in folder application/controllers/sample.php Code: class Sample extends MY_Controller After I call to the URL http://localhost/index.php/sample it return error message Quote:Fatal error: Class 'MY_Controller' not found in D:\xampp\htdocs\CI2\application\controllers\sample.php on line 2
[eluser]CodeIgniterStep.Com[/eluser]
Oh sorry!!, I create it in folder application/core it work. It is core application not libraries class :p sorry for about that. |
Welcome Guest, Not a member yet? Register Sign In |