My scenario is as follows:
I'm using CodeIgniter 3 with HMVC, while doing only local development, I had no problems with XAMPP with Windows, I went up to my test server which is an Ubuntu Server and then started the problems:
The routes stop working when uppercase letters are in the url , HMVC controllers are simply not found giving 404 error or failing to load Session.php which is a typical loading error of libraries / controllers and related.
I tried the following solutions:
My questions are:
A: Although I can solve my problem, I do not think it's good practice to change the $ _SERVER variable, how can I modify the MX_Loader so that it becomes definitely Case Insensitive?
B: The HMVC documentation is not very clear in the file naming pattern, as they structure the 'modules' folder, my folder structure looks like this:
www / application / modules /
www / application / modules / system
www / application / modules / system / Controllers /
www / application / modules / system / Controllers / System.php
www / application / modules / system / Controllers / Catalog.php
www / application / modules / system / Controllers / Routes.php
www / application / modules / system / Models /
www / application / modules / system / Models / Sistema_model.php
www / application / modules / system / Views /
www / application / modules / system / Views / layout / structure.html
www / application / modules / system / Views / leiaute / menu.html
It may be that you are naming the files incorrectly and therefore generated the problem of question A for this reason I found it relevant to ask question B as well.
Thank you in advance.