Scarecrow
Scarecrow

Reputation: 4137

CodeIgniter returning 404 if controller files are in lowercase on linux

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.

Upvotes: 3

Views: 1056

Answers (2)

Shraddha Gajjar
Shraddha Gajjar

Reputation: 56

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.

Upvotes: 1

Abdulla Nilam
Abdulla Nilam

Reputation: 38609

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.

Naming Conventions in Codeigniter

Upvotes: 2

Related Questions