From 99b820a5bf36158405208f140cf48f8aedf91fff Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 14 Nov 2005 00:29:41 +0000 Subject: Added theme support. --- framework/Web/UI/TPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/TPage.php') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 08fbd2fe..232878da 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -66,7 +66,7 @@ class TPage extends TTemplateControl return parent::loadTemplate(); else { - $template=Prado::getApplication()->getService()->getTemplateManager()->loadTemplateByFileName(Prado::getPathOfNamespace($this->_templateFile,'.tpl')); + $template=Prado::getApplication()->getService()->getTemplateManager()->getTemplateByFileName(Prado::getPathOfNamespace($this->_templateFile,'.tpl')); $this->setTemplate($template); return $template; } @@ -326,9 +326,9 @@ EOD; private function initializeThemes() { if($this->_themeName!=='') - $this->_theme=new TTheme($this->_themeName); + $this->_theme=$this->getService()->getThemeManager()->getTheme($this->_themeName); if($this->_styleSheetName!=='') - $this->_styleSheet=new TTheme($this->_styleSheetName); + $this->_styleSheet=$this->getService()->getThemeManager()->getTheme($this->_styleSheetName); } /** -- cgit v1.2.3