From 31777c9231cdf69332405078d458c490725018b4 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 5 Apr 2013 12:43:55 -0400 Subject: [PATCH] Fixed render issue. --- framework/base/Controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/base/Controller.php b/framework/base/Controller.php index 241c66c..6ff68da 100644 --- a/framework/base/Controller.php +++ b/framework/base/Controller.php @@ -357,7 +357,8 @@ class Controller extends Component */ public function renderPartial($view, $params = array()) { - return $this->getView()->render($view, $params, $this); + $viewFile = $this->findViewFile($view); + return $this->getView()->renderFile($viewFile, $params, $this); } /**