CodeIgniter Forums
add_js() of template library not functioning - 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: add_js() of template library not functioning (/showthread.php?tid=31337)



add_js() of template library not functioning - El Forum - 06-15-2010

[eluser]kpspoke[/eluser]
I have this template library loaded and use it for all my pages so far. However, when i try and use the add_js() function it errors out. I add the regions $_scripts to the template header file but when i load the page it says undefined variable _scripts.

any thoughts?

Thanks

[edit]

changed <?= $_scripts ?> to <?= (isset($_scripts)) ? $_scripts : "";

and obviously i lose the error but the js file still isnt loading.