From e8b60312037e54c34a06d6f57d7c21946cf3cd1f Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 28 Dec 2005 20:17:54 +0000 Subject: Modified the way to access application singleton. IService and IModule interfaces are also adjusted accordingly. --- framework/Web/UI/TTemplateControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/TTemplateControl.php') diff --git a/framework/Web/UI/TTemplateControl.php b/framework/Web/UI/TTemplateControl.php index dc4bc567..9987bc9c 100644 --- a/framework/Web/UI/TTemplateControl.php +++ b/framework/Web/UI/TTemplateControl.php @@ -101,7 +101,7 @@ class TTemplateControl extends TControl implements INamingContainer */ protected function loadTemplate() { - $template=Prado::getApplication()->getService()->getTemplateManager()->getTemplateByClassName(get_class($this)); + $template=$this->getService()->getTemplateManager()->getTemplateByClassName(get_class($this)); self::$_template[get_class($this)]=$template; return $template; } -- cgit v1.2.3