php - How to execute module bootstrap resources present inside another module's bootstrap in Zend Framework 1? -
i bootstrapping application zend_application_module_bootstrap
inside various module directories. how can require resource inside module's bootstrap executed first?
// app/modules/user/bootstrap.php class user_bootstrap extends zend_application_module_bootstrap { protected function _inituser() { } } // app/modules/author/bootstrap.php class author_bootstrap extends zend_application_module_bootstrap { protected function _initauthor() { $this->bootstrap('user'); // fatal: resource matching 'user' not found } }
i've decided use plugins achieve fine-grained functionality, execution order cannot managed properly, therefore making module bootstraps poor choice place code dependencies.
used referenced answer below base decision:
Comments
Post a Comment