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?
#2

[eluser]mimran[/eluser]
Your question is not very clear, please rephrase.
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB