Browse Source

Fixed render issue.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
31777c9231
  1. 3
      framework/base/Controller.php

3
framework/base/Controller.php

@ -357,7 +357,8 @@ class Controller extends Component
*/ */
public function renderPartial($view, $params = array()) public function renderPartial($view, $params = array())
{ {
return $this->getView()->render($view, $params, $this); $viewFile = $this->findViewFile($view);
return $this->getView()->renderFile($viewFile, $params, $this);
} }
/** /**

Loading…
Cancel
Save