Chris Tate-Davies

An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring…

Accessing the Zend_Application from a page

Posted on | July 27, 2010 | 1 Comment

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');
}
 

Comments

One Response to “Accessing the Zend_Application from a page”

  1. Audrina Patridge
    January 13th, 2011 @ 6:21 am

    Have you ever thought about including extra movies to your weblog posts to keep the readers more entertained? I imply I just read through the entire article of yours and it was fairly good but since I am more of a visual learner,I found that to be more helpful. well, let me know how it turns out!

Leave a Reply