2009年4月7日星期二

Re: [fw-mvc] How to beforeViewRendered?

>$this->view->assign
:)

The difficulty is not in how but rather in where and when to make
assignment to view.
I mean I might use different actions and forwards etc and collect that
info but later make assignment to view in just one go.
Something like fc's preDispatch would be great.
I even tried to extend Zend_View and override it's render method but
Zend_Layout don't like my view.

And what is action plugin?

On 4/7/09, Vadim Gabriel <vadimg88@gmail.com> wrote:
> Hey,
>
> You can use the $this->view->assign method or just
> $this->view->property_name and it will assign the value to the
> property_name
> in the view.
>
> You could do that using the action plugins.
>
> Vince.
>
> On Tue, Apr 7, 2009 at 6:24 PM, K.L. <coviex@gmail.com> wrote:
>
>> Hi,
>>
>> Along the dispatch process I assign some info into registry and later
>> want to assign it into view in one go before view is rendered.
>>
>> How to do it?
>>
>> Regards,
>> Kostya
>>
>>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
>

没有评论: