Welcome Guest, Not a member yet? Register   Sign In
Organizing controllers in subfolders
#1

[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?


Messages In This Thread
Organizing controllers in subfolders - by El Forum - 07-25-2009, 11:22 PM
Organizing controllers in subfolders - by El Forum - 07-25-2009, 11:24 PM
Organizing controllers in subfolders - by El Forum - 07-25-2009, 11:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB