summaryrefslogtreecommitdiff
path: root/framework/Web/Services
diff options
context:
space:
mode:
authorxue <>2006-02-19 14:28:30 +0000
committerxue <>2006-02-19 14:28:30 +0000
commitad8fced1af4eb8e6d57f8610273490aec0ac8cba (patch)
tree9e3598418417152494e3b5cd5df938b11527728a /framework/Web/Services
parentfb2ba05edf43665152150f65731a80ecb327b5da (diff)
Fixed #56.
Diffstat (limited to 'framework/Web/Services')
-rw-r--r--framework/Web/Services/TPageService.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index 09f1027e..cebedc63 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -182,6 +182,7 @@ class TPageService extends TService
}
// load modules specified in page directory config
+ $modules=array();
foreach($pageConfig->getModules() as $id=>$moduleConfig)
{
Prado::trace("Loading module $id ({$moduleConfig[0]})",'System.Web.Services.TPageService');
@@ -190,8 +191,10 @@ class TPageService extends TService
$application->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]);
$application->getAuthorizationRules()->mergeWith($pageConfig->getRules());
}