Commit b316ebee by Qiang Xue

typo fix.

parent 5cd7976a
...@@ -262,7 +262,7 @@ class View extends Component ...@@ -262,7 +262,7 @@ class View extends Component
Yii::trace("Rendering view file: $viewFile", __METHOD__); Yii::trace("Rendering view file: $viewFile", __METHOD__);
$ext = pathinfo($viewFile, PATHINFO_EXTENSION); $ext = pathinfo($viewFile, PATHINFO_EXTENSION);
if (isset($this->renderers[$ext])) { if (isset($this->renderers[$ext])) {
if (is_array($this->renderers[$ext]) || is_string($this->renders[$ext])) { if (is_array($this->renderers[$ext]) || is_string($this->renderers[$ext])) {
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]);
} }
/** @var ViewRenderer $renderer */ /** @var ViewRenderer $renderer */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment