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

One comment on “Accessing the Zend_Application from a page

  1. Audrina Patridge January 13, 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

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.