當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FrontController::getParams方法代碼示例

本文整理匯總了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;
     }
 }
開發者ID:inilotic,項目名稱:vks_nodes_core,代碼行數:12,代碼來源:Auth.class.php

示例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>
開發者ID:inilotic,項目名稱:vks_nodes_core,代碼行數:30,代碼來源:jsGraph.php

示例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 -->
開發者ID:inilotic,項目名稱:vks_nodes_core,代碼行數:31,代碼來源:show.php


注:本文中的FrontController::getParams方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。