helpers. Javascript is a typical thing rendered in views, so it's not useful
to have action helpers to render scripts.
Regards, Jurian
--
Jurian Sluiman
CTO Soflomo V.O.F.
http://soflomo.com
On Wednesday 19 May 2010 11:06:53 Zladivliba Voskuy wrote:
> 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: djvirgen@gmail.com
> Date: Tue, 18 May 2010 13:21:47 -0700
> To: jsluiman@gmail.com
> CC: fw-general@lists.zend.com; fw-mvc@lists.zend.com
> 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 <jsluiman@gmail.com>
> 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
没有评论:
发表评论