public function init() { parent::init(); if (isset(Yii::$app->view->theme->basePath)) { $this->sourcePath = Yii::$app->view->theme->basePath; } }