Welcome Guest, Not a member yet? Register   Sign In
Using nested controllers
#1

[eluser]hollow[/eluser]
Hello,

First time here, just started using CI and enjoying it.

Issue:
I'm trying to use nested controllers, something like this:
controllers/welcome.php
controllers/private/welcome.php
controllers/private/students/marks.php
controllers/private/management/marks.php


Sure, I can avoid this by trying this structure:
/controllers/welcome.php
/controllers/students/marks.php
/controllers/management/marks.php


But, could I achieve my first goal? How should my routes.php look like?

To reach the controllers/private/welcome.php it works with:
Code:
$route['private'] = "private/welcome";
But to go down on more level, I can't pull it off.

Thank you.


Messages In This Thread
Using nested controllers - by El Forum - 10-23-2009, 09:15 AM
Using nested controllers - by El Forum - 10-23-2009, 09:26 AM
Using nested controllers - by El Forum - 10-23-2009, 10:19 AM
Using nested controllers - by El Forum - 10-23-2009, 10:30 AM
Using nested controllers - by El Forum - 10-23-2009, 10:50 AM
Using nested controllers - by El Forum - 10-24-2009, 02:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB