예제 #1
0
 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();
 }
예제 #2
0
 public function init()
 {
     $this->baseUrl = '@web/static/themes/' . CommonUtility::getCurrentTheme();
     parent::init();
 }