<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國際加速解決方案。 廣告
                ## 自定義路由變量 路由變量是用來解析到底執行哪個控制器哪個方法,以及參數的一個解析變量。 PHPstart 默認路由變量是$_SERVER['PATH_INFO'],但是您也可以根據自己的習慣來自定義路由變量。 配置方法是在“PHPstart/__Config/vhosts.ini.php” **例子1** ~~~ return array( array( 'host'=>'127.0.0.1', 'path' =>'Test', 'router'=> $_GET['do'], ) ); ~~~ 參考URL:http://127.0.0.1/test/hello/world 通過列子1的配置,我們就需要把參考URL改成 http://127.0.0.1/index.php?do=test/hello/world 或 http://127.0.0.1/index.php?do=test.hello.world 才能準確的解析 如果沒有$_SERVER['PATH_INFO']這個變量,系統會自動獲取$_GET['do']作為路由變量,所以在沒有配置router的情況下也可以使用下面這樣的url的 http://127.0.0.1/index.php?do=test.hello.world **例子2** ~~~ $m = isset($_GET['m']) ? $_GET['m'] : 'content'; $c = isset($_GET['c']) ? $_GET['c'] : 'index'; $a = isset($_GET['a']) ? $_GET['a'] : 'index'; return array( array( 'host'=>'127.0.0.1', 'path' =>'Test', 'router'=>$m.'/'.$c.'/'.$a, ) ); ~~~ 通過列子2的配置,我們就可以使用常見的MVC框架的URL了 如:http://127.0.0.1/index.php?m=content&c=index&a=index
                  <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>

                              哎呀哎呀视频在线观看