[Help]How to work with controllers in separate folders - 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: [Help]How to work with controllers in separate folders (/showthread.php?tid=22729) |
[Help]How to work with controllers in separate folders - El Forum - 09-18-2009 [eluser]Nonox[/eluser] I have a doubt about how to work with controllers in separate folders, part of the site is into a folder called "site/", and all this is what the users surf (the main site), the folder "admin/" have the controllers about the administration. Well... all refer about "admin/" is OK, I navigate in this way http://localhost/admin/login . But I dont want to navigate the main site in this way: http://localhost/site/catalog/product/1 I want this way: http://localhost/catalog/product/1 I followed this recomendation http://ellislab.com/codeigniter/user-guide/general/controllers.html#subfolders I hope you can help me to solve this. Thanks N My structure of folder is this: Code: htdocs/ [Help]How to work with controllers in separate folders - El Forum - 09-18-2009 [eluser]ElShotte[/eluser] Have you installed Auth for your user/permission management yet? I would recommend reading the CMS tutorial for CI at programmersvoice.com [Help]How to work with controllers in separate folders - El Forum - 09-18-2009 [eluser]Nonox[/eluser] Hi ElShotte, I'll check this out, thanks. [Help]How to work with controllers in separate folders - El Forum - 09-18-2009 [eluser]daparky[/eluser] I wouldn't put controllers in folders simply because when i build an application in CI, i use one controller to handle all the actions for a section. E.g. user.php controller will handle everything in the /views/user/ folder. In that user folder i might have edit, add, remove, etc etc. [Help]How to work with controllers in separate folders - El Forum - 09-18-2009 [eluser]Nonox[/eluser] I understand, In this case I decided to separate the programation because I thought that it was the best way in this develop. |