resource. Afaik it's something like this (it works for me with the
getOptions() method instead of getResource at least):
$this->getInvokeArg('bootstrap')
->getResource('modules')
->offsetGet($this->getRequest()->getModuleName())
->getResource('logger');
Regards, Jurian
--
Jurian Sluiman
CTO Soflomo V.O.F.
http://soflomo.com
On Wednesday 09 Dec 2009 18:47:20 Jon Whitcraft wrote:
> Hello,
>
> I have a module boot strap class that I want to create a logger in that
> i only need in said module, this all works fine.
>
> But in my controller when i try and get the logger from the bootstrap
> with this command I get a null back
>
> $log = $this->getInvokeArg('bootstrap')->getResource('logger');
>
> If i move the _initLogger() method to the main application bootstrap
> file it works fine. It's only when it's in the module bootstrap. Does
> the module bootstrap not save the resources or does it save it in a
> different way.
>
> Let me know if you need any more code and I'll be happy to post some.
>
> Jon
>
没有评论:
发表评论