本文整理汇总了PHP中source\libs\Resource::getAdminTheme方法的典型用法代码示例。如果您正苦于以下问题:PHP Resource::getAdminTheme方法的具体用法?PHP Resource::getAdminTheme怎么用?PHP Resource::getAdminTheme使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类source\libs\Resource
的用法示例。
在下文中一共展示了Resource::getAdminTheme方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setTheme
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: setTheme
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);
}