CodeIgniter Forums
Putting controllers in sub folders? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Putting controllers in sub folders? (/showthread.php?tid=24787)



Putting controllers in sub folders? - El Forum - 11-19-2009

[eluser]Mischievous[/eluser]
ok... so i figured a way around putting controllers under a sub folder ex:

controllers/backend/controller

Im trying to figure out a way to put controllers in sub-sub folders? Ex:

controllers/backend/system/controller

is this possible? when i do it codeigniter screams the page cant be found? where in the codeigniter core is the function that looks for the controllers? possibly a modification is needed?


Putting controllers in sub folders? - El Forum - 11-19-2009

[eluser]w0bbes[/eluser]
Rewrite it in the router?


Putting controllers in sub folders? - El Forum - 11-19-2009

[eluser]Mischievous[/eluser]
Genius... with all the work i've been doing in codeigniter neglected to remember the router! haha... great idea w0bbes! 2 kuddos to you! Wink