summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqiang.xue <>2008-12-26 20:42:27 +0000
committerqiang.xue <>2008-12-26 20:42:27 +0000
commit4ddc5bef4c8ee647435c605317c03bda417ba7e2 (patch)
treedf751e51b7b158e30aaacbe262ca5fe6f52864e8
parent4c089f57732530328f24c93e6f4d78933fe91171 (diff)
-rw-r--r--framework/TApplication.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 0e97f3cb..03ca3f05 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -305,6 +305,7 @@ class TApplication extends TComponent
// generates unique ID by hashing the runtime path
$this->_uniqueID=md5($this->_runtimePath);
$this->_parameters=new TMap;
+ $this->_services=array($this->getPageServiceID()=>array('TPageService',array(),null));
Prado::setPathOfAlias('Application',$this->_basePath);
}
@@ -866,7 +867,8 @@ class TApplication extends TComponent
$this->setSubProperty($name,$value);
}
- $this->_services=array($this->getPageServiceID()=>array('TPageService',array(),null));
+ if(empty($this->_services))
+ $this->_services=array($this->getPageServiceID()=>array('TPageService',array(),null));
// load parameters
foreach($config->getParameters() as $id=>$parameter)
@@ -952,7 +954,7 @@ class TApplication extends TComponent
if(($serviceID=$this->getRequest()->resolveRequest(array_keys($this->_services)))===null)
$serviceID=$this->getPageServiceID();
-
+
$this->startService($serviceID);
}