Browse Source

Added default class for theme.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
4fa377d890
  1. 3
      yii/base/View.php

3
yii/base/View.php

@ -171,6 +171,9 @@ class View extends Component
{ {
parent::init(); parent::init();
if (is_array($this->theme)) { if (is_array($this->theme)) {
if (!isset($this->theme['class'])) {
$this->theme['class'] = 'yii\base\Theme';
}
$this->theme = Yii::createObject($this->theme); $this->theme = Yii::createObject($this->theme);
} }
} }

Loading…
Cancel
Save