From 3d437d9dcd37dc901f53ca3322ba118851e3c676 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 17 May 2006 21:24:40 +0000 Subject: Merge from 3.0 branch till 1073. --- framework/Web/UI/TThemeManager.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework/Web/UI/TThemeManager.php') diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index c351bcdb..6a908759 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -207,6 +207,7 @@ class TTheme extends TApplicationComponent implements ITheme public function __construct($themePath,$themeUrl) { $this->_themeUrl=$themeUrl; + $this->_themePath=realpath($themePath); $this->_name=basename($themePath); $cacheValid=false; // TODO: the following needs to be cleaned up (Qiang) @@ -308,6 +309,14 @@ class TTheme extends TApplicationComponent implements ITheme return $this->_themeUrl; } + /** + * @return string the file path to the theme folder + */ + public function getBasePath() + { + return $this->_themePath; + } + /** * Applies the theme to a particular control. * The control's class name and SkinID value will be used to -- cgit v1.2.3