It seems that if you want to develop a bootstrap for module,
you will need to extends Zend_Application_Module_Bootstrap
But how to get Layout from bootstrap_bootstrap?
$this->getApplication()->getResource("layout");
How to get view?
$this->getApplication()->getResource("layout")->getView();
What if i get undefined getView of a undefined object?
Yes, this problem is because layout and view bootstrap is not loaded in Zend_Application_Bootstrap_Bootstrap.
Makesure to run these in the class which extends bootstrap_bootstrap:
$this->bootstrap("View");
$this->bootstrap("layout");
No comments:
Post a Comment