Hi!

Won't work since run is a final method. (which made some ideas of mine obsolete ..)

bests, thomas

On 9/28/06, Xavier < [EMAIL PROTECTED]> wrote:
Xavier a écrit :
> Hi List,
>
> I'd like to create a plugin for building the html navigation of my
> site , for this i would like to designoverride  preDispatch method
>
> the flow would be:
>
> for each action
>    check if the related controller have a specific property called :
> zone or zonesMap
>
>    if yes, i'd like to call a private method of the target controller
> to build and assign the menu html in the related view.
>
> My problem is that i can't figure how to access the target controller
> object from the plugin.  i can call $action->getActionName() or
> $action->getControllerName() , but at this time i don't know if the
> target controller is already instanciated ( i don't think so...)
>
> is there a way to achieve that ?
>
> Thanks in advance
>
> Xav
>
Well, ok i reply to myself :)
Maybe i should override Zend_Controller_Action::run() method to do this
kind of stuff ?
What is the best way ?

Thanks
Xav



--
"Power corrupts. Power failure corrupts absolutely"

Reply via email to