only availlable in postDispatch but if I use
Zend_Layout::getMvcInstance()->getView()->assign to assign this info
into view from plugin's postDispatch, view doesn't see it, says it is
NULL.
On 4/8/09, Vadim Gabriel <vadimg88@gmail.com> wrote:
> Hey,
>
> Yea well, I don't really know the way your doing this but i think your best
> chance is to use a plugin. Depends on where exacly you want the view to be
> assigned of course. For a list of supported plugins you can take a look at
> http://framework.zend.com/manual/en/zend.controller.plugins.html.
>
> Vince.
>
> On Wed, Apr 8, 2009 at 9:12 AM, K.L. <coviex@gmail.com> wrote:
>
>> >$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.
>> >
>>
>>
>> --
>> Opera.com
>>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
>
--
Opera.com
没有评论:
发表评论