CodeIgniter Forums
default_controller in sub folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: default_controller in sub folder (/showthread.php?tid=10483)



default_controller in sub folder - El Forum - 08-01-2008

[eluser]Billy Khan[/eluser]
Can someone confirm whether it is possible to have the default_controller set to a controller in a sub folder?

e.g. $route['default_controller'] = "public/c_public" doest work where as $route['default_controller'] = "c_public"; does.


default_controller in sub folder - El Forum - 08-01-2008

[eluser]Pascal Kriete[/eluser]
It's not possible by default, but a quick MY_Router extension can make it happen. I posted one a while ago.


default_controller in sub folder - El Forum - 08-01-2008

[eluser]codex[/eluser]
[quote author="inparo" date="1217627935"]It's not possible by default, but a quick MY_Router extension can make it happen. I posted one a while ago.[/quote]

Thanks for the fix. I ran into this problem myself.