本文整理匯總了PHP中settings::get_cache_dir方法的典型用法代碼示例。如果您正苦於以下問題:PHP settings::get_cache_dir方法的具體用法?PHP settings::get_cache_dir怎麽用?PHP settings::get_cache_dir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類settings
的用法示例。
在下文中一共展示了settings::get_cache_dir方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: empty
$update_msg .= '</ul>';
gen_error_msg($update_msg, $update_title, $update_explain, true);
}
}
// Probably best place to validate the settings
$settings->validate();
$error = $settings->get_error();
$page = empty($error) ? $page : 'settings';
if ($page == 'main' || $page == 'settings' || $alt_env_missing) {
if ($settings->install || $settings->is_converted || $mode == 'update_settings' || $page == 'settings' || $alt_env_missing) {
$page = 'settings';
require $quickinstall_path . 'includes/qi_settings.' . $phpEx;
}
}
// Hide manage boards if there is no saved config.
$template->assign_var('S_IN_INSTALL', $settings->install);
// now create a module_handler object
$module = new module_handler($quickinstall_path . 'modules/', 'qi_');
// Set some standard variables we want to force
if (defined('PHPBB_31')) {
$config = new \phpbb\config\config(array('load_tplcompile' => '1'));
set_config(false, false, false, $config);
set_config_count(null, null, null, $config);
} else {
$config = array('load_tplcompile' => '1');
}
// overwrite
$cache->cache_dir = $settings->get_cache_dir();
$template->cachepath = $cache->cache_dir . 'tpl_qi_';
// Load the main module
$module->load($page, 'qi_main');