Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14115

CI 2.x->3.x Class Names?

$
0
0
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');

$this->mylibrary->myfunction(); 

...or, can I leave those unchanged?

Thanks in advance for the info

Viewing all articles
Browse latest Browse all 14115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>