diff options
author | xue <> | 2006-02-19 14:28:30 +0000 |
---|---|---|
committer | xue <> | 2006-02-19 14:28:30 +0000 |
commit | ad8fced1af4eb8e6d57f8610273490aec0ac8cba (patch) | |
tree | 9e3598418417152494e3b5cd5df938b11527728a /framework/TApplication.php | |
parent | fb2ba05edf43665152150f65731a80ecb327b5da (diff) |
Fixed #56.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 8cc1e9f9..fd341b43 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -846,6 +846,7 @@ class TApplication extends TComponent // load and init modules specified in app config $this->_modules=array(); + $modules=array(); foreach($config->getModules() as $id=>$moduleConfig) { Prado::trace("Loading module $id ({$moduleConfig[0]})",'System.TApplication'); @@ -855,8 +856,10 @@ class TApplication extends TComponent $this->setModule($id,$module); foreach($moduleConfig[1] as $name=>$value) $module->setSubProperty($name,$value); - $module->init($moduleConfig[2]); + $modules[]=array($module,$moduleConfig[2]); } + foreach($modules as $module) + $module[0]->init($module[1]); // load service $services=$config->getServices(); |