Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Routing works on MAMP NOT LAMP
#22

[eluser]Narf[/eluser]
Quote:I did read the docs for C12 and if you look under the Controllers section they do use an example of “blog,” which is lowercase but they do not state that it must be lowercase.

CI 2, not 12. Smile
I'm quite certain that it's written *somewhere* that controller *filenames* must be written in lowercase.

Quote:In contrast they do however state further down that the Controller itself must start with Uppercase.

That's for *class* names, which don't really matter.

file name != class name
route != class name

It can be confusing though, indeed. Hence the changes in CI3.

Quote:The other issue is that I did not know that MAMP ignores case, very annoying, so could not reproduce it locally. Just downloaded Virtual Machine, so that does not happen again.

It's not MAMP or WAMP that ignores the case, it's the file system. A LAMP setup using files on NTFS also wouldn't make a difference. As far as I know, OSX can be configured (at installation time) to have a case-sensitive file system, so that's not entirely true about MAMP as well.

Quote:Is it worth upgrading to C13? Or should I research that myself grin

It's CI 3, not 13.
And yes, totally worth it.

Quote:I was using 2.2.0… The interesting thing was with a single route ie Home, case didn’t appear to matter so Home or home worked. But case did matter for say home/products. Which made you half right as you stated! Something I didn’t expect and I’ve not dug into the code to see why! So it’s just pure observation!

See ... that's the thing. It doesn't matter in general, but it appears to matter for default_controller and 404_override. Had anyscraven looked more carefully at the error message, he'd know that there's nothing wrong with his 'products/whatever' route, the message talks about a default route.


Messages In This Thread
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 09:13 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 10:14 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 10:26 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 10:43 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 10:47 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 11:02 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-15-2014, 11:10 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-16-2014, 06:09 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-16-2014, 09:15 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-16-2014, 09:27 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-17-2014, 05:40 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-18-2014, 02:05 PM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-18-2014, 04:49 PM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-18-2014, 05:38 PM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-18-2014, 05:40 PM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-18-2014, 07:02 PM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-19-2014, 02:53 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-19-2014, 05:06 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-20-2014, 05:01 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-20-2014, 05:10 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-20-2014, 05:11 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-20-2014, 05:30 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-20-2014, 05:39 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-20-2014, 04:43 PM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-21-2014, 03:20 AM
CodeIgniter Routing works on MAMP NOT LAMP - by El Forum - 10-21-2014, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB