From 4fa377d890e762cdb8d7fa985a7e0bcd99bfda95 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 11 May 2013 21:09:36 -0400 Subject: [PATCH] Added default class for theme. --- yii/base/View.php | 3 +++ 1 file changed, 3 insertions(+) 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); } }