0
有没有基本引导和模块引导的方法?执行模块引导
这是我的应用程序结构
- application
- modules
- admin
- controllers
- Bootstrap.php
- public
- controllers
- Bootstrap.php
- Bootstrap.php
- libraries
当我测试的应用程序只执行基本引导。 我迫使模块与该自举(在基部自举)的执行:
$modules = array('admin', 'public');
foreach ($modules as $module) {
$path = APP_PATH . '/modules/' . $module . '/Bootstrap.php';
$class = ucfirst($module) . '_Bootstrap.php';
include_once $path;
$bootstrap = new $class($this);
$bootstrap->bootstrap();
}
与此我可以执行模块的自举
只有。 还有别的办法吗?
也许这将有助于:http://stackoverflow.com/questions/9853170/default-bootstrap-overrides-admin-bootstrap – 2012-07-20 17:12:02