本文整理匯總了PHP中Mapper::set_layout_path方法的典型用法代碼示例。如果您正苦於以下問題:PHP Mapper::set_layout_path方法的具體用法?PHP Mapper::set_layout_path怎麽用?PHP Mapper::set_layout_path使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mapper
的用法示例。
在下文中一共展示了Mapper::set_layout_path方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
}
$wp_theme = "wp-content" . DIRECTORY_SEPARATOR . "themes" . DIRECTORY_SEPARATOR . $env['theme'];
if (file_exists($wp_theme)) {
$GLOBALS['PATH']['content_plugins'] = 'wp-content' . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR;
$GLOBALS['PATH']['themes'] = "wp-content" . DIRECTORY_SEPARATOR . "themes" . DIRECTORY_SEPARATOR;
} else {
$GLOBALS['PATH']['themes'] = $request->template_path . 'wp-themes' . DIRECTORY_SEPARATOR;
}
// set up the content-negotiation template paths
if (is_dir($app . $env['view_folder'])) {
$request->set_template_path($app . $env['view_folder'] . DIRECTORY_SEPARATOR);
} else {
$request->set_template_path($env['view_folder'] . DIRECTORY_SEPARATOR);
}
if (is_dir($app . $env['layout_folder'])) {
$request->set_layout_path($app . $env['layout_folder'] . DIRECTORY_SEPARATOR);
} else {
$request->set_layout_path($env['layout_folder'] . DIRECTORY_SEPARATOR);
}
/**
* connect to the database with settings from config.yml
*/
// load dbscript database support classes
db_include(array('database', 'model', 'record', 'recordset', 'resultiterator', $adapter));
if (DB_NAME) {
$database = DB_NAME;
}
if (DB_USER) {
$username = DB_USER;
}
if (DB_PASSWORD) {