I am using CodeIgniter 3.0.3
and having problem in running my app on linux
, It is returning 404 if controller name
starts in lowercase
character, If I rename the controller with first char in uppercase then it is working.
I've tried on xampp it is working there with controller name starts with lowercase character .
Is there any setting I have to change to make my app work with controller name
starts in lowercase
, or rename all controller with first char in uppercase?
I know that it is not a tough task to rename all the controllers, but I need to know if there is any workaround.
Thanks in advance for your precious time.
In Codeigniter 3 you have to create file names with caps in first . File names means Model and Controller .
And in Windows it will work when its in small capes. But in linux it will not. Its Case-Sensitive.
In codeigniter 3,controller and model name must start with title case.ex- Home,Registration.
Window is not case-sensitive. Linux base server is case-sensitive.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.