Tuesday 1 October 2013

How to load a script in a template footer - CodeIgniter

How to load a script in a template footer - CodeIgniter

I'm trying out a more maintainable way to structure my code as learnt by
some tutorials at nettuts+.
I've succeeded in making my header and footer files separate from the main
content of each page so that they are loaded along with each different
page, thus making it easier to manage changes to these two files.
I'm currently wanting to add some jQuery code to my footer, for only one
page. This is where I've hit a wall in thinking. How can I allow this
jQuery code to be present in my footer for only one page, and not all
pages? Could someone please explain?

No comments:

Post a Comment