CodeIgniter Forums
helper,libraries autoload or when need - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: helper,libraries autoload or when need (/showthread.php?tid=12718)



helper,libraries autoload or when need - El Forum - 10-29-2008

[eluser]umefarooq[/eluser]
Hi
which one is the best way to use libraries,helper and other using auto load or load it in when it need, if we put in autoload it include all helper and libraries will it slow down the performance of the application.


helper,libraries autoload or when need - El Forum - 10-29-2008

[eluser]xwero[/eluser]
You autoload files if you need them system wide otherwise load them when needed.


helper,libraries autoload or when need - El Forum - 10-29-2008

[eluser]drewbee[/eluser]
Exactly, I know that I will always need the session and database classes on every single page (including AJAX requests), so those two are always auto loaded.