diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Application/Resource/Dojo.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Application/Resource/Dojo.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,76 @@ +getDojo(); + } + + /** + * Retrieve Dojo View Helper + * + * @return Zend_Dojo_View_Dojo_Container + */ + public function getDojo() + { + if (null === $this->_dojo) { + $this->getBootstrap()->bootstrap('view'); + $view = $this->getBootstrap()->view; + + Zend_Dojo::enableView($view); + $view->dojo()->setOptions($this->getOptions()); + + $this->_dojo = $view->dojo(); + } + + return $this->_dojo; + } +}