diff options
author | xue <> | 2005-11-14 00:29:41 +0000 |
---|---|---|
committer | xue <> | 2005-11-14 00:29:41 +0000 |
commit | 99b820a5bf36158405208f140cf48f8aedf91fff (patch) | |
tree | 7bf7ff8f1306687602bc6585600e228fbe40295f /framework/Web/UI/TPage.php | |
parent | 0253a0bfca988f81fdec4fb29e1a1d4137a0c480 (diff) |
Added theme support.
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r-- | framework/Web/UI/TPage.php | 6 |
1 files changed, 3 insertions, 3 deletions
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);
}
/**
|