Question about & get_instance();

#1
[eluser]shinokada[/eluser]
In the user guide, it explains about "get_instance()".

Quote:Utilizing CodeIgniter Resources within Your Library

To access CodeIgniter's native resources within your library use the get_instance() function. This function returns the CodeIgniter super object.


Q. Can get_instance() be used not only for library but also helper as well?

#2
[eluser]n0xie[/eluser]
yes


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.