[eluser]Agustín Villalba[/eluser]
Hi! Now I'm trying to extend a controller of mine which extends from CodeIgniter controller, just like this:
Controller1.php
class Controller1 extends Controller {
function Controller1(){
parent::Controller();
}
... }
Controller2.php
class Controller2 extends Controller1 {
function Controller2(){parent::Controller1();}
This code returns this error:
Fatal error: Class 'Controller1' not found in C:\xampplite\htdocs\project\system\application\controllers\Controller2.php on line XX
Can any one tell me how do I extend a controller from another one?? Thank you very much!!