php - Bootstrap of Zend Module is not loading -
i new in working zend facing problem past 2 days. have searched lot still can not find solution.
possible duplicate of zend module bootstrap not load still can not solve problem.
in user module working perfect meaning models dbtables controllers bootstrap.
i want add user relevant routes user module bootstrap can add them application bootstrap not want make large file.
i have in application/modules/user/bootstrap.php
class user_bootstrap extends zend_application_module_bootstrap { protected function _initrouter() { //does not work think should work echo 'joo'; exit; } }
as far know bootsrap of modules run every time when run application in case doesn't seems working.
update:
in application/configs/application.ini:
[production] phpsettings.display_startup_errors = 0 phpsettings.display_errors = 0 includepaths.library = application_path "/../library" bootstrap.path = application_path "/bootstrap.php" bootstrap.class = "bootstrap" appnamespace = "application" resources.frontcontroller.controllerdirectory = application_path "/controllers" resources.frontcontroller.params.displayexceptions = 0 resources.layout.layoutpath = application_path "/layouts/scripts/" resources.frontcontroller.moduledirectory = application_path "/modules" resources.modules[] = "" resources.db.adapter = "mysqli" resources.db.params.host = "xxxxx" resources.db.params.username = "xxxxx" resources.db.params.password = "xxxxx" resources.db.params.dbname = "xxxxx" resources.frontcontroller.actionhelperpaths.idispatch_controller_action_helper = "idispatch/controller/action/helper/" [staging : production] [testing : production] resources.cachemanager.database.frontend.options.caching = false phpsettings.display_startup_errors = 1 phpsettings.display_errors = 1 [development : production] phpsettings.display_startup_errors = 1 phpsettings.display_errors = 1 resources.frontcontroller.params.displayexceptions = 1
bootstrap in application directory:
class bootstrap extends zend_application_bootstrap_bootstrap { protected function _initautoloaders() { //user module loader new zend_application_module_autoloader(array( 'namespace' => 'user', 'basepath' => application_path . '/modules/user' )); } }
note: using zfw 1
i came here ask hoping me here. please correct me if doing wrong. great appreciation.
thanks.
i did tests in basic zf1 setup , way not work when filename not bootstrap.php
. in terms of linux case sensitive.
as mention correctly modules path looked @ every time , exit()
working in case. except file doesn't exist or misspelling in config fixed.
also shouldn't need autoloader in main bootstrap checked , doesn't cause issue.
Comments
Post a Comment