Welcome Guest, Not a member yet? Register   Sign In
extends other controller
#1

[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.
#2

[eluser]easylancer[/eluser]
You need to do
Code:
require_once('../routine.php');
at the top of the file before declaring the controller.
#3

[eluser]Little_Match_Girl[/eluser]
easylancer, I got error message. It's said that the file is not exist.

Code:
Severity: Warning

Message: require_once(../routine.php) [function.require-once]: failed to open stream: No such file or directory

Filename: member/view.php

Is anybody have trying this problem ?
#4

[eluser]AndrewMalachel[/eluser]
How about:
Code:
require_once(APPPATH.'controllers/routine.php');
on the top of the program?
#5

[eluser]John_Betong[/eluser]
 
http://ellislab.com/forums/viewthread/82026/

 
Take a look at the above post, it may solve your problem.
 
 
#6

[eluser]Little_Match_Girl[/eluser]
[quote author="AndrewMalachel" date="1229709148"]How about:
Code:
require_once(APPPATH.'controllers/routine.php');
on the top of the program?[/quote]

Thanks Andrew.
The problem is solved.

Thank a lot.




Theme © iAndrew 2016 - Forum software by © MyBB