CodeIgniter Forums
Problem controller within subfolder - 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: Problem controller within subfolder (/showthread.php?tid=20647)



Problem controller within subfolder - El Forum - 07-16-2009

[eluser]Aircraft42h[/eluser]
Hi,

Firstable I had all files in my subfolder admin, and it worked very well.
But I would like to explode with other folders :

Like that :
controlers
admin
user
content
customer

I still have a file in admin and it's ok but i can't access file inside user, content or customer, I have always 404 page not found.

any ideas ?
I m' very tired, more than 3 hours to search what's wrong

Aircraft


Problem controller within subfolder - El Forum - 07-16-2009

[eluser]Dam1an[/eluser]
You can only have 1 level of sub folders for controllers, which is why you can access stuff in admin ok but not any folders within admin
You could probably tweak Router to enable nested folders, and chances are somepones probably done it already and there's a modified library somewhere... wiki perhaps?


Problem controller within subfolder - El Forum - 07-16-2009

[eluser]Aircraft42h[/eluser]
argh ! OK
But it is possible to have many sub folder in view, that's it ?


Problem controller within subfolder - El Forum - 07-16-2009

[eluser]Thorpe Obazee[/eluser]
[quote author="Aircraft42h" date="1247802416"]argh ! OK
But it is possible to have many sub folder in view, that's it ?[/quote]

Yes.


Problem controller within subfolder - El Forum - 07-16-2009

[eluser]darkhouse[/eluser]
This router extension allows you to have nested controller folders. http://ellislab.com/forums/viewthread/56100/