diff --git a/yii/base/View.php b/yii/base/View.php index 8482a68..2a6f71f 100644 --- a/yii/base/View.php +++ b/yii/base/View.php @@ -171,6 +171,9 @@ class View extends Component { parent::init(); if (is_array($this->theme)) { + if (!isset($this->theme['class'])) { + $this->theme['class'] = 'yii\base\Theme'; + } $this->theme = Yii::createObject($this->theme); } }