CodeIgniter Forums
loading library - 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: loading library (/showthread.php?tid=11007)



loading library - El Forum - 08-21-2008

[eluser]PHPraja[/eluser]
I know that the library has to be loaded in the controller only, but is it correct to load a library in a view?
My requirement is that two separate libraries has to be loaded, based on a condition (a data base field value 0 or 1) which is displayed in a view.

can any one suggest the correct way..
thanks in advance