summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2005-12-11 00:13:55 +0000
committerxue <>2005-12-11 00:13:55 +0000
commited7d3b719ee58d224f50017505dc3c938de72987 (patch)
tree36cca5cac321ab79826502e72db20f903c287d05 /framework/TApplication.php
parentba423d5eee055002345ee88b748d91f5f1d06c4e (diff)
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 5506b38d..7556d94c 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -214,12 +214,12 @@ class TApplication extends TComponent
public function __construct($configFile,$cacheFile=null)
{
parent::__construct();
- Prado::setApplication($this);
if(($this->_configFile=realpath($configFile))===false || !is_file($this->_configFile))
throw new TIOException('application_configfile_inexistent',$configFile);
$this->_cacheFile=$cacheFile;
// generates unique ID by hashing the configuration file path
$this->_uniqueID=md5($this->_configFile);
+ Prado::setApplication($this);
}