public function init() { $currentTheme = CommonUtility::getCurrentTheme(); $theme = '@app/themes/' . $currentTheme; $config = ['pathMap' => ['@app/views' => [$theme, '@app/themes/basic'], '@app/modules' => $theme . '/modules', '@app/widgets' => $theme . '/widgets'], 'baseUrl' => '@web/themes/basic']; $this->theme = new Theme($config); parent::init(); }
public function init() { $this->baseUrl = '@web/static/themes/' . CommonUtility::getCurrentTheme(); parent::init(); }