The homepage of Chris Tate-Davies
Accessing the Zend_Application from a page
If, like me, you need to access some Zend_Application resources (such as multidb resources) – then you need a reference to the Zend_Application and the bootstrap. I use this:
if (null == $this->_application)
{
$this->_application = Zend_Controller_Front::getInstance()
->getParam('bootstrap');
}
| Print article | This entry was posted by admin on July 27, 2010 at 1:06 pm, and is filed under PHP. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |