diff options
author | wei <> | 2006-01-06 22:21:07 +0000 |
---|---|---|
committer | wei <> | 2006-01-06 22:21:07 +0000 |
commit | 333eedb6eea18fdfb7bc0890cce1c30e6d44d363 (patch) | |
tree | 5b34d4181cd55e0219003d67d22a8438ac21b0d2 /framework/Web/UI/TTemplateManager.php | |
parent | 16660934cc48f357b1322bce7869158db2f7cb58 (diff) |
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index d5c5f0ba..df708e50 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -60,7 +60,7 @@ class TTemplateManager extends TModule public function getTemplateByClassName($className)
{
$class=new ReflectionClass($className);
- $tplFile=dirname($class->getFileName()).'/'.$className.self::TEMPLATE_FILE_EXT;
+ $tplFile=dirname($class->getFileName()).'/'.$className.self::TEMPLATE_FILE_EXT;
return $this->getTemplateByFileName($tplFile);
}
@@ -72,6 +72,7 @@ class TTemplateManager extends TModule {
if(!is_null($fileName=$this->getLocalizedTemplate($fileName)))
{
+ Prado::coreLog("Loading template $fileName");
if(($cache=$this->getApplication()->getCache())===null)
return new TTemplate(file_get_contents($fileName),dirname($fileName),$fileName);
else
@@ -106,6 +107,7 @@ class TTemplateManager extends TModule if(($file=realpath($file))!==false && is_file($file))
return $file;
}
+
}
}
|