CodeIgniter Forums

Full Version: Is it possible to change the folder name of the controllers and models
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to change the folders name of controllers and models, as you can do it with views folder.
I know I can create a folder inside controllers folder, and then I must changeĀ $routing['directory'] = ''
to the folder name that I have created before, but this is not good way.
I want for example change the name of controllers folder from "controllers" to "modules", and also the same way with "models".
Why would you want to do that?
No, you can't.
I want to change the structure of application directories to something more organized.
I am considering of modifying the core of framework, but I don't know if this behavior is right or wrong.
If you don't like this MVC structure, maybe you should consider using something other than CodeIgniter?
I found an old thread on Stack Overflow. I do not know if it is working, but you could take an inspiration from it. But anyway, is it worth an effort for something like this? :-)

Your customers will probably not see this or do not care about it. And you can create directory links on localhost for yourself, but be careful if you will choose this solution, because you can not use them on FTP server.
Anyway I thank you Mr [Muzikant] to try to help me.
Also thank you Mr [Martin7483].