diff options
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/TTemplateControl.php | 2 | ||||
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/TTemplateControl.php b/framework/Web/UI/TTemplateControl.php index 7042281c..ee205b33 100644 --- a/framework/Web/UI/TTemplateControl.php +++ b/framework/Web/UI/TTemplateControl.php @@ -109,7 +109,7 @@ class TTemplateControl extends TControl implements INamingContainer */
protected function loadTemplate()
{
- $template=Prado::getApplication()->getService()->getTemplateManager()->loadTemplateByClassName(get_class($this));
+ $template=Prado::getApplication()->getService()->getTemplateManager()->getTemplateByClassName(get_class($this));
eval(get_class($this).'::$_template=$template;');
return $template;
}
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 2f8ae688..843d2460 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -31,14 +31,14 @@ class TTemplateManager extends TComponent implements IModule $this->_id=$value;
}
- public function loadTemplateByClassName($className)
+ public function getTemplateByClassName($className)
{
$class=new ReflectionClass($className);
$tplFile=dirname($class->getFileName()).'/'.$className.self::TEMPLATE_FILE_EXT;
- return $this->loadTemplateByFileName($tplFile);
+ return $this->getTemplateByFileName($tplFile);
}
- public function loadTemplateByFileName($fileName)
+ public function getTemplateByFileName($fileName)
{
if(is_file($fileName))
{
|