diff --git a/framework/yii/base/View.php b/framework/yii/base/View.php index 57f2fc1..d3db27d 100644 --- a/framework/yii/base/View.php +++ b/framework/yii/base/View.php @@ -262,7 +262,7 @@ class View extends Component Yii::trace("Rendering view file: $viewFile", __METHOD__); $ext = pathinfo($viewFile, PATHINFO_EXTENSION); 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]); } /** @var ViewRenderer $renderer */