本文整理汇总了PHP中Globals::getPageInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Globals::getPageInfo方法的具体用法?PHP Globals::getPageInfo怎么用?PHP Globals::getPageInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Globals
的用法示例。
在下文中一共展示了Globals::getPageInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildPage
function buildPage($controllers)
{
$tmp = Globals::getPageInfo();
if ($controllers != null) {
if (is_array($controllers)) {
foreach ($controllers as $controller) {
include $tmp[1] . (string) $controller . '_controller.php';
}
} elseif (is_string($controllers)) {
include $tmp[1] . (string) $controllers . '_controller.php';
}
}
}
示例2: buildPage
public function buildPage()
{
$tmp = Globals::getPageInfo();
//echo "Cool".$this->controller;
if ($this->controller != null) {
if (is_array($this->controller)) {
foreach ($this->controller as $controller) {
$_SERVER . (include $tmp[1] . (string) $controller . '_controller.php');
echo $tmp[1] . (string) $controller . '_controller.php';
}
} elseif (is_string($this->controller)) {
$_SERVER . (include $tmp[1] . (string) $this->controllers . '_controller.php');
}
}
}
示例3:
<?php
require_once '../blog/classes/clsGlobals.php';
require_once '../blog/classes/clsDatabase.php';
require_once '../blog/classes/clsLayout.php';
$globs = Globals::getPageInfo();