In response to a similar question in Nabble , Matthew Weyer O'Pinnie (Mr. Zend Framework 1) suggests using this form:
$this->getInvokeArg('bootstrap')->getResource('db');
So, in the context of this question, it will be something like this:
class IndexController extends Zend_Controller_Action
{
public function init()
{
}
public function indexAction()
{
$db = $this->getInvokeArg('bootstrap')->getResource('db');
}
}
source
share