本文整理汇总了PHP中FrontController::getParams方法的典型用法代码示例。如果您正苦于以下问题:PHP FrontController::getParams方法的具体用法?PHP FrontController::getParams怎么用?PHP FrontController::getParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrontController
的用法示例。
在下文中一共展示了FrontController::getParams方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isLoggedOrDie
static function isLoggedOrDie($init)
{
global $_TB_IDENTITY;
if ($init->user->isLogged) {
return true;
} else {
App::$instance->log->logWrite(LOG_SECURITY, "Restricted access: Try to enter logged only allowed zone");
ST::redirectToCaRoute("AuthNew/login&return=" . FrontController::whereIm() . "/" . FrontController::getParams());
// echo ExceptionHandler::showEmptyMessage("Страница доступна только зарегистрированным пользователям, пожалуйста, войдите в систему <a href='" . HTTP_PATH."?route=AuthNew/login&return=" . FrontController::whereIm()."/".FrontController::getParams() . "' '>здесь</a> используя логин для <b>ТБ ".$_TB_IDENTITY[MY_NODE]['humanName']."</b>");
// exit;
}
}
示例2: header
header('refresh:60');
include_once CORE_REPOSITORY_REAL_PATH . "views/main.php";
$asrt = new FlotGraphAssert();
$asrt->init();
?>
<script type='text/javascript'>
<?php
echo "var plotTicks = " . json_encode($graph->plotTicks) . ";\n";
echo "var randomData = " . json_encode($graph->data) . ";\n";
echo "var thresholdCou = " . json_encode($graph->threshold) . ";\n";
?>
</script>
<div class="container">
<div class="col-lg-12" style="margin-bottom: 200px;">
<h3>График нагрузки на <?php
echo date_create(FrontController::getParams())->format("d.m.Y");
?>
<span class="pull-right"><input id="dp_another_date" class="hidden" disabled/><button type="button" class="btn btn-default btn-sm" id="btn_another_date">Другая дата</button> </span></h3>
<hr>
<div class="demo-container">
<div>
<div id="placeholder" class="demo-placeholder" style="width:100%;height:450px"></div>
</div>
<div class="clearfix"></div>
<div><button class="btn btn-default btn-sm pull-right" id="reset" type="button">Сброс</button></div>
</div>
</div>
示例3: foreach
<!-- deploy breadcrumps -->
<div class="breadcrumb-container">
<a href="?route=AttendanceNew/show/1" class="btn btn-default btn-sm"><span
class="glyphicon glyphicon-home"></span></a>
<?php
if ($data['breadCrumps']) {
?>
<?php
foreach ($data['breadCrumps'] as $point) {
?>
<a href="?route=AttendanceNew/show/<?php
echo $point->id;
?>
"
class="btn btn-default btn-sm <?php
if (FrontController::getParams() == $point->id) {
echo "btn-info";
}
?>
"><?php
echo $point->name;
?>
</a>
<?php
}
?>
<?php
}
?>
</div>
<!-- !deploy breadcrumps -->