• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to change the folder name of the controllers and models

#1
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".
Reply

#2
Why would you want to do that?
Reply

#3
No, you can't.
Reply

#4
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.
Reply

#5
If you don't like this MVC structure, maybe you should consider using something other than CodeIgniter?
Reply

#6
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.
Reply

#7
Anyway I thank you Mr [Muzikant] to try to help me.
Also thank you Mr [Martin7483].
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.