Welcome Guest, Not a member yet? Register   Sign In
--Is there a controller hierarchy ?
#1

[eluser]Unknown[/eluser]
Hi I am a newbie to CI. I created a controller which extends the Controller:

class BaseSessionController extends Controller {
// some logic here
}

Then I tried to create another controller class which extends the BaseSessionController:

class SubController extends BaseSessionController {
// some logic here
}

These two controllers are in two different php files -- both in the controllers folder. It seems that BaseSessionController could not be recognized by SubController . I am wondering if I have to manually include the BaseSessionController script file in my SubController script, using require() or require_once().


Messages In This Thread
--Is there a controller hierarchy ? - by El Forum - 10-15-2007, 06:26 PM
--Is there a controller hierarchy ? - by El Forum - 10-16-2007, 03:57 AM
--Is there a controller hierarchy ? - by El Forum - 10-16-2007, 07:22 AM
--Is there a controller hierarchy ? - by El Forum - 10-16-2007, 10:59 AM
--Is there a controller hierarchy ? - by El Forum - 10-16-2007, 11:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB