Great,
I noticed that sometimes, I don't need to return resource, for example

protected function _initAutoloader() {
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Umpirsky_');
}

autoload still works, but maybe then I cannot grab it with getInvokeArg...

Regards,
Saša Stamenković


On Thu, Jul 9, 2009 at 3:40 PM, holografix . <[email protected]> wrote:

> Hi Caшa
>
> Thank you very much. It was a stupid error in my code. It missed a return
> $foo in the _initFoo() method. Sorry for this.
>
> cheers
> holo
> 2009/7/9 Саша Стаменковић <[email protected]>
>
> Hi.
>> Try $this->*getInvokeArg*('bootstrap')->getResource('foo');
>>
>> Check
>>
>> http://www.nabble.com/How-to-get-an-application-resource-inside-a-controller-action-td23728917.html#a23729095
>>
>> Regards,
>> Saša Stamenković
>>
>>
>>
>> On Thu, Jul 9, 2009 at 3:26 PM, holografix . <[email protected]>wrote:
>>
>>> Hi
>>>
>>> I have some resource methods in Bootstrap class
>>>
>>> class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
>>> {
>>>       public function _initView()
>>>       {
>>>           ......
>>>       }
>>>
>>>      public function _initFoo()
>>>      {
>>>         ...
>>>      }
>>> }
>>>
>>> How can I access this resources in an action controller ?
>>>
>>> I think that section 4.3.1.1 (Resource methods) in the manual could be
>>> improved.
>>> It only tells how to bootstrap the resource methods. Not how to access
>>> this resources later in the application.
>>>
>>> Cheers
>>> holo
>>>
>>
>>
>

Reply via email to