From 51083f666005194dbed2e6963c823c08393a3a80 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 11 Nov 2005 22:45:22 +0000 Subject: Enhanced page service configuration parsing. Content included between opening and closing page service tag in app config is now parsed. --- framework/TApplication.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'framework/TApplication.php') diff --git a/framework/TApplication.php b/framework/TApplication.php index 55c1df6c..70b6a9ff 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -141,7 +141,8 @@ class TApplication extends TComponent implements IApplication { parent::__construct(); Prado::setApplication($this); - $this->_configFile=$configFile; + if(($this->_configFile=realpath($configFile))===false) + throw new TIOException('application_configfile_invalid',$configFile); $this->_cacheFile=$cacheFile; } @@ -206,6 +207,14 @@ class TApplication extends TComponent implements IApplication return $this->_uniqueID; } + /** + * @return string configuration file path + */ + public function getConfigurationFile() + { + return $this->_configFile; + } + /** * @return IService the currently requested service */ -- cgit v1.2.3