本文整理汇总了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) {