Codeigniter 3.0 forced uppercase naming of controllers and classes |
(05-18-2016, 02:41 PM)kilishan Wrote: Hey stefano, you're correct that PHP can tell what case the file system reports the file as. But the tricky part is going the other direction. Hi Kilishan, thank you for the explanation. I still cannot understand the difference between the test I made and the "other direction", I'm sure it's something I'm missing. Do you maybe have a pointer to the source code where Codeigniter looks for the file in the capitalised version? Another question: why couldn't CI let the route.php file decide if the controller has to be lowercase or ucfirst or whatever... for example, in my route.php file I have: $route['default_controller'] = 'website'; //lowercase and not: $route['default_controller'] = 'Website'; // Ucfirst But CI 3.0 does not complain and go searching for a "Website.php" file. Why couldn't CI simply follow the naming used by the programmer and open the corresponding file?! S. |
Welcome Guest, Not a member yet? Register Sign In |