示例#1
0
 public function setTheme()
 {
     $currentTheme = Resource::getAdminTheme();
     $moduleId = LuLu::$app->controller->module->id;
     $config = ['pathMap' => ['@app/views' => ['@statics/admin/' . $currentTheme . '/views'], '@source/modules/' . $moduleId . '/admin/views' => ['@statics/admin/' . $currentTheme . '/modules/' . $moduleId]], 'baseUrl' => '@statics/admin/' . $currentTheme];
     $this->theme = new Theme($config);
 }
示例#2
0
 public static function setTheme()
 {
     $currentTheme = Resource::getAdminTheme();
     $config = ['pathMap' => ['@backend/views' => ["@statics/themes/backend/{$currentTheme}/views"]], 'baseUrl' => "@statics/themes/backend/{$currentTheme}"];
     LsYii::getView()->theme = new Theme($config);
 }