本文整理匯總了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();