CI 2.x->3.x Class Names? |
I'm upgrading from CI 2.x to 3.x. I see that I will be changing the case of class names to make them have initial caps. E.g.:
PHP Code: application/libraries/mylibrary.php becomes: PHP Code: application/libraries/Mylibrary.php Question: do I also need to update references to that class in the code? E.g. do the following need to change as well? PHP Code: $this->load->library('mylibrary'); ...or, can I leave those unchanged? Thanks in advance for the info
(11-11-2016, 11:33 AM)Wouter60 Wrote: You can leave those in lower case. Should, but not really required. It will work just fine with renaming only the files.
http://www.codeigniter.com/user_guide/ge...ile-naming
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |