<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 生成路由 使用`siteUrl`函數生成路由(該函數寫在`application\Common.php`文件中) ``` /** * 生成url * @param string $url 路由地址,類似于tp5的url()函數的第一個參數 如:index/index/hello * @param string $vars 路由參數 * @param string $weDoor 微擎入口 web-Web端入口,app-App端入口 * @return array|string */ siteUrl($url = '', $vars = '', $weDoor = '') ``` 使用用過`thinkphp5`的`url`函數的同學應該清楚,前兩個參數和`url`函數類似, 而`$weDoor `這個參數,不傳則默認當前入口,不清楚可以[查看微擎手冊 ](http://s.w7.cc/index.php?c=wiki&do=view&id=1&list=13) ## 路由參數 如鏈接:`http://we7demo.com/app/index.php?m=tp5_chen&c=entry&a=site&i=6&do=index&tp_c=index&tp_a=index` 在`tp5_chen\index.php`文件中有以下代碼 ~~~ //微擎模塊 $m = $_GPC['m']; //設置常量 define('MODULE_NAME',$m); //tp模塊 $tpM = $_GPC['do'] ? $_GPC['do']:'index'; //tp控制器 $tpC = isset($_GPC['tp_c'])? $_GPC['tp_c']:'index'; $_GPC['tp_c'] = $tpC = strtolower(trim(preg_replace("/[A-Z]/", "_\\0", $tpC), "_")); //tp方法 $_GPC['tp_a'] = $tpA = isset($_GPC['tp_a'])? trim($_GPC['tp_a']):'index'; // 加載基礎文件 require __DIR__ . '/thinkphp/base.php'; // 執行應用并響應 Container::get('app')->path(__DIR__.'/application/')->bind($tpM."/".$tpC."/".$tpA)->run()->send(); ~~~ `do` 參數相當于`tp`的模塊參數 `tp_c` 參數相當于`tp `的控制器參數 `tp_a` 參數相當于`tp` 的方法參數 對于這個`Container`類不了解的可以看tp5.1手冊和代碼[http://www.hmoore.net/manual/thinkphp5\_1/353956](http://www.hmoore.net/manual/thinkphp5_1/353956)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看