Organizing controllers in subfolders - 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: Organizing controllers in subfolders (/showthread.php?tid=20929) |
Organizing controllers in subfolders - El Forum - 07-25-2009 [eluser]Unknown[/eluser] I am facing a problem with managing controllers in codeigniter. I want to organize controllers module wise. Controllers related to a certain module will be stored in certain folder as shown below e.g controllers/authenticate/login.php In the same way, I wish to have a user module and the related controllers to be stored in it, controllers/user/register.php controllers/user/user_home.php Now the problem, Right now my controllers are all stored within the controllers folder, which needs to be moved into the relevant controllers/module folder. When I am in the views, is there any generic way of obtaining the module name from the URI, so that I don't have to write the module name hard coded in the views. Can anyone help me on this? Organizing controllers in subfolders - El Forum - 07-25-2009 [eluser]mimran[/eluser] Your question is not very clear, please rephrase. Organizing controllers in subfolders - El Forum - 07-25-2009 [eluser]umefarooq[/eluser] hi if you want to create admin panel or sub folder this post will be very helpful http://ellislab.com/forums/viewthread/122375/ |