I am attempting to design a "Druplally" framework around ZF and I want to
allow the module's bootstrap to have access to the View object (for helper
registration etc.)
When I put the following in the MAIN bootstrap file
<code>
public function _initHelpers () {
$this->bootstrap('view');
$view = $this->getResource('view');
}
</code>
it works fine. (I have resources.view[] = in my main configuration.)
However the same code in a MODULE'S bootstrap crashes:
Zend_Application_Bootstrap_Exception: Resource matching "view" not found in
/Users/bingomanatee/Documents/sites/ZendFramework/library/Zend/Application/Bootstrap/BootstrapAbstract.php
(the error statck points to bootstrap('view') )
So my question(s) is/are:
* Does a module's bootstrap expect a configuration file to exist IN THE
MODULE (with a resources.view[] node)?
* Why does the module not have access to the application resources?
If anyone can help me figure out why I cannot access the view helper from
the module or outline exactly what the "Resource space" of a module's
bootstrap file is, I'd be greatful.
Thanks
Dave
--
View this message in context:
http://old.nabble.com/Accessing-View-object-from-Module-Bootstrap-tp26201497p26201497.html
Sent from the Zend Framework mailing list archive at Nabble.com.