本文整理汇总了PHP中ErrorPage::show方法的典型用法代码示例。如果您正苦于以下问题:PHP ErrorPage::show方法的具体用法?PHP ErrorPage::show怎么用?PHP ErrorPage::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ErrorPage
的用法示例。
在下文中一共展示了ErrorPage::show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PageCat
$tmp = new PageCat();
$cats = $tmp->findAll(1, 1, false, true);
// parse routing
for ($i = 0; $i < count($cats); $i++) {
if ($req[0] == $cats[$i]->uri()) {
$conString = $cats[$i]->controller();
$controller = new $conString();
$tmp = new PageCat();
$controller->cat = $tmp->find('uri', $req[0]);
$controller->pageTitle = $controller->cat->title_de();
break;
}
}
// standard start page?
if ($req[0] == "") {
$controller = new NormPage();
$controller->isStart = true;
}
// admin login?
if ($req[0] == "admin") {
$controller = new AdminPage();
$controller->pageTitle = "Administration";
}
// everything else
if (!$controller) {
$controller = new ErrorPage();
$controller->pageTitle = "Fehler";
}
$controller->setreq($req);
$controller->show();
示例2: Navigation
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<?php
$nav = new Navigation();
$nav->show($command, $params, $currentuser);
//echo "Type:".User::Current()->type;
?>
<?php
$currentpage->show($command, $params, $currentuser);
?>
</body>
</html>