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

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,

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?

Your question is not very clear, please rephrase.

hi if you want to create admin panel or sub folder this post will be very helpful


Theme © iAndrew 2016 - Forum software by © MyBB