本文整理匯總了PHP中UserConfig::loadTheme方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserConfig::loadTheme方法的具體用法?PHP UserConfig::loadTheme怎麽用?PHP UserConfig::loadTheme使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserConfig
的用法示例。
在下文中一共展示了UserConfig::loadTheme方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
EpiCache::employ($configObj->get('epi')->cache);
$sessionParams = array($configObj->get('epi')->session);
if ($configObj->get('epiSessionParams')) {
$sessionParams = array_merge($sessionParams, (array) $configObj->get('epiSessionParams'));
// for TLDs we need to override the cookie domain if specified
if (isset($sessionParams['domain']) && stristr($_SERVER['HTTP_HOST'], $sessionParams['domain']) === false) {
$sessionParams['domain'] = $_SERVER['HTTP_HOST'];
}
$sessionParams = array_values($sessionParams);
// reset keys
}
EpiSession::employ($sessionParams);
getSession();
// load theme after everything is initialized
// this initializes user which extends BaseModel and gets session, config and cache objects
$userConfigObj->loadTheme();
// determine if this is a login endpoint
$loginEndpoint = $assetEndpoint = false;
if (isset($_GET['__route__']) && preg_match('#/user/(.*)(login|logout)#', $_GET['__route__'])) {
$loginEndpoint = true;
}
if (isset($_GET['__route__']) && preg_match('#^/assets#', $_GET['__route__'])) {
$assetEndpoint = true;
}
// determine if this is a setup endpoint
$runSetup = false;
if ($hasConfig && isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '/setup') !== false && isset($_GET['edit'])) {
$runSetup = true;
}
// if the config file exists and we're not running the setup, proceed as normal
if ($hasConfig && !$runSetup) {