of course, replace
$this->getInvokeArg('bootstrap')->getResource('Registry') by
$this->getInvokeArg('bootstrap')->getResource('Myresource') in the question.
Denis Fohl a écrit :
Hi,
in application/modules/module1, i've got a Bootstrap.php with :
class Module1_Bootstrap extends Zend_Application_Module_Bootstrap
{
protected function _initMyresource()
{
$test = 1;
return $test;
}
}
in Module1_IndexController,
$this->getInvokeArg('bootstrap')->getResource('Registry') return NULL
Please, how can i retrieve my module resource ?
Thank you.
Denis.