Interesting. Is there a way to use such action helper to disaplay javascript  
elements ?

Thanks for your input.
Z.
--
My dojo & zend framework experience, the good, the bad with code samples ;-)

http://practicalphpajax.wordpress.com/




From: [email protected]
Date: Tue, 18 May 2010 13:21:47 -0700
To: [email protected]
CC: [email protected]; [email protected]
Subject: [fw-mvc] Re: [fw-general] Set script action in 
frontControllerPlugin::preDispatch()

Maybe an action helper would be better. They also support preDispatch hooks. 
You will need to bootstrap the helper in order to make sure the hook runs.
Zend_Controller_Action_HelperBroker::getStaticHelper('MyActionHelper');


--
Hector



On Tue, May 18, 2010 at 12:13 PM, Jurian Sluiman <[email protected]> wrote:


Hi all,
I have a frontcontroller plugin, which should be able to set the view script in 
case of certain conditions. I use the helperBroker to fetch the viewRenderer 
statically and then I set the scriptAction. This isn't working.




I figured out when an action controller is instantiated, the view renderer 
resets all its parameters. Therefore you can only change the action script 
inside the action controller and by no means other resources are able to do 
such. How do others handle this?




Regards, Jurian


                                          
_________________________________________________________________
Hotmail : un service de messagerie gratuit, fiable et complet
https://signup.live.com/signup.aspx?id=60969

Reply via email to