Routing - subfolder [solved]

#1
[eluser]überfuzz[/eluser]
I have a admin area on a site. The admin controllers are placed in a subfolder like this:
Code:
controllers/admin/home.php
                  anothercontroller.php
                  yetanothercontroller.php

How do I reach the controllers in the admin folder? I tried to write some custom routes in the config/routes.php. No luck! Some pointers would be appreciated... Or am I barking up the wrong tree, should I work this differently..?

#2
[eluser]überfuzz[/eluser]
The urls I'm looking for: www.site.com/folder/controller/method

#3
[eluser]Samuurai[/eluser]
I know it's solved, but I found this post which helped me:

http://ellislab.com/forums/viewthread/99699/

#4
[eluser]überfuzz[/eluser]
Well thank you dude!

I just had to think CI like to get it running... Actually, I stripped all fancy pancy stuff. It's running smoothly with the default folder routing, I just had to structure it differently.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.