![]() |
Case Sensitive Filenames - Stop Bad Practice - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Case Sensitive Filenames - Stop Bad Practice (/showthread.php?tid=69556) |
Case Sensitive Filenames - Stop Bad Practice - rothkj1022 - 12-13-2017 Please stop requiring the first letter of model, controller and library files to have an uppercase first letter. This has been nothing but annoying for me since the launch of CI3. I see no point in doing it this way. Developers using a Mac or PC will have no issues during local development if one or more files do not have the required uppercase first letter, but once deployed on a case-sensitive linux production web server, that's when you will have issues. This is bad practice in my opinion. Thanks for your consideration. RE: Case Sensitive Filenames - Stop Bad Practice - ciadmin - 12-13-2017 You must have missed the discussion over the last couple of years - you can use whatever case & namespace you want within your app, with CI4. Contributions to the framework are still expected to conform to our style guidelines, but developers are free to choose. RE: Case Sensitive Filenames - Stop Bad Practice - rothkj1022 - 12-13-2017 That is great news. Thank you! RE: Case Sensitive Filenames - Stop Bad Practice - skunkbad - 12-13-2017 (12-13-2017, 02:23 PM)rothkj1022 Wrote: Developers using a Mac or PC will have no issues during local development if one or more files do not have the required uppercase first letter, but once deployed on a case-sensitive linux production web server, that's when you will have issues. The bad practice is not using Linux for development. You have a lot of options for developing on a Linux O/S, so there shouldn't be any excuses. If you know your production environment is a Linux server, it's smart to try to replicate that environment as much as possible. RE: Case Sensitive Filenames - Stop Bad Practice - albertleao - 12-13-2017 Bad practice is developing on 2 different environments and expecting things to work the same way... There are endless options that overcome what you're facing. RE: Case Sensitive Filenames - Stop Bad Practice - InsiteFX - 12-14-2017 If your using Windows use Filezilla to ftp your application, you can tell it to upload the files all with lower case. RE: Case Sensitive Filenames - Stop Bad Practice - kilishan - 12-14-2017 The autoloader in CI4 requires the case of the class name and namespace to match the directories and filename in order for the file to be autoloaded. That's pretty standard for autoloaders. RE: Case Sensitive Filenames - Stop Bad Practice - Paradinight - 12-15-2017 (12-13-2017, 02:23 PM)rothkj1022 Wrote: Please stop requiring the first letter of model, controller and library files to have an uppercase first letter. This has been nothing but annoying for me since the launch of CI3. I see no point in doing it this way. Developers using a Mac or PC will have no issues during local development if one or more files do not have the required uppercase first letter, but once deployed on a case-sensitive linux production web server, that's when you will have issues. This is bad practice in my opinion. Bad Practice is youclass.php ![]() |