Sergio Rinaudo wrote: > Hi, > I'm wondering which is a good way to add javascript libraries depends of > the controller where we are. > Any advice?
If it's dependent on the controller you can just do it in the init()
method of the controller itself.
public function init()
{
$this->view->headScript()->appendFile($urlOfLibrary);
}
--
Brenton Alker
PHP Developer - Brisbane, Australia
http://blog.tekerson.com/
signature.asc
Description: OpenPGP digital signature
