2009年5月17日星期日

Re: [fw-mvc] Retrieving View resource in module bootstrap

It turns out that I could do $this->getApplication() to get the
application bootstrap. This is much nicer for me since I try to avoid
singleton usage when possible.

On Sun, May 17, 2009 at 3:02 PM, Ed Lazor
<edlazor@internetarchitects.biz> wrote:
> I'm not sure, but would this help you?
>
> $view = Zend_Layout::getMvcInstance()->getView();
>
>
>
> On Sun, May 17, 2009 at 11:39 AM, Abraham Block <atblock@gmail.com> wrote:
>> How can I retrieve the view resource from a module bootstrap? I would
>> like to "inject" a Zend_Navigation container containing my admin
>> section menu structure into the Menu view helper, but I can't see to
>> access the view resource from within my module bootstrap.
>>
>

没有评论: