Welcome Guest, Not a member yet? Register   Sign In
Add code to controller to load a javascript file in the header?
#1

[eluser]markanderson993[/eluser]
Hello there CodeIgniter experts. I have a relatively simple question.

Is there a simple bit of code that would allow me to for instance, ask the method in the controller (just for that page) to load a javascript file in the header? An example of what I mean would be something like this:

Code:
$this->load->headerfile("js/javascript-file.js");

Is this possible?

Thanks for your help!
- Pianoman993


Messages In This Thread
Add code to controller to load a javascript file in the header? - by El Forum - 04-29-2009, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB