[eluser]nourdine[/eluser]
hello people ... I have an easy one here.
I noticed that in the docs it is recommended that we use get_instance() function to get an instance of the code igniter super object when we need to use its core libraries inside a custom lib. To be precise I noticed that the following snippet is used to get a reference to the code igniter context:
Code:
$CI =& get_instance();
I was wondering why you used
instead of the simple
. The code igniter super object is clearly an object so it is passed by reference by default in php5 no? Can I assume I can simply use:
Code:
$CI = get_instance();
In case I am working with php5?
cheers