how call prototype.js from controller ? |
[eluser]najm[/eluser]
hello i have problem to call prototype.js in a controller in fact i call this library in view and i success and this is my code this is the Controller : Code: <?php and this the view : Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> please help to call this library prototype.js from the controller and thank you
[eluser]meigwilym[/eluser]
You'll have to call prototype.js from the view, as it's code that's executed in the browser, and not the server. If you need a quick guide on using JS with CI, take a look at Michael Wales' tutorial: http://michaelwales.com/tutorials/codeig...th-jquery/ Mei |
Welcome Guest, Not a member yet? Register Sign In |