Great, 
thank you!

Sergio Rinaudo




> Date: Fri, 15 May 2009 00:17:03 +1000
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [fw-general] Adding javascript depends of the controller
> 
> 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/
> 

_________________________________________________________________
Resta in contatto con gli amici, comunica con Messenger!
http://messenger.it/cominciaAcomunicare.aspx

Reply via email to