diff options
author | carlgmathisen <> | 2008-11-02 16:24:53 +0000 |
---|---|---|
committer | carlgmathisen <> | 2008-11-02 16:24:53 +0000 |
commit | 7d7c9143d13bd2761fa0cd27253da38904c80e73 (patch) | |
tree | 40be4bde9342fb09012773b48c4660c5e5de7c88 | |
parent | 97d45205e6eb3989b0d496d429f541ff70113c3d (diff) |
bug in TApplication
-rw-r--r-- | framework/TApplication.php | 6 |
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); } |