extends other controller |
[eluser]Little_Match_Girl[/eluser]
Hi I have problem to extends my controller with other one controller. I have controller named, "routine". Located in "controllers/" . The other controller's name is , "view". Located in "controllers/member/" . I'm trying to extends "view" controller with "routine", and I get this error : Code: Fatal error: Class 'routine' not found in C:\Program Files\xampp\htdocs\intranet\system\application\controllers\member\view.php on line 11 Anyone have a solution ? Thanks before.
[eluser]easylancer[/eluser]
You need to do Code: require_once('../routine.php');
[eluser]Little_Match_Girl[/eluser]
easylancer, I got error message. It's said that the file is not exist. Code: Severity: Warning Is anybody have trying this problem ?
[eluser]AndrewMalachel[/eluser]
How about: Code: require_once(APPPATH.'controllers/routine.php');
[eluser]John_Betong[/eluser]
http://ellislab.com/forums/viewthread/82026/ Take a look at the above post, it may solve your problem.
[eluser]Little_Match_Girl[/eluser]
[quote author="AndrewMalachel" date="1229709148"]How about: Code: require_once(APPPATH.'controllers/routine.php'); Thanks Andrew. The problem is solved. Thank a lot. |
Welcome Guest, Not a member yet? Register Sign In |