<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ##漂亮的路由 **1.phpstart路由準則是:** 1.1 盡量保證URL的美觀和可讀性,看起來類似直接訪問php文件。 1.2 項目中所有.php的文件都強制轉交phpstart來處理 *實例:* http://www.phpstart.xyz/test/index http://www.phpstart.xyz/test/index.php http://www.phpstart.xyz/test/index.html >上面的鏈接實際請求的資源是 /test/index.php 你可以在項目目錄中找到對應的文件,只不過都是由phpstart來加載的。 我們建議不需要SEO優化的URL,盡量不帶文件格式名,因為帶后綴的URL更像是從服務器獲取一個靜態資源,而交互行為的URL已經包含行為動作,沒必要在URL中表明是.php還是.asp腳本。 * * * * * **2.省略程序名** *實例:* http://www.phpstart.xyz/index >上面的鏈接實際請求的資源是 /test/index.php 因為默認程序目錄是:test,所以url中可以省略程序目錄 >修改默認程序方法:修改入口文件/index.php↓ define('DEFAULT_APP', test');//定義默認APP目錄 * * * * * **3.訪問子程序(模塊)** http://www.phpstart.xyz/group1/index >上面的鏈接實際請求的資源是 /test/group1/index.php group1相當test程序下的一個子程序,文件夾里面也可以有自己的class、model,加載的優先順序是從當前目錄往上遍歷。 * * * * * **4.執行控制器方法** 缺省值方法是 index(); ~~~ http://www.phpstart.xyz/test/hello/world ~~~ >引用文件:/test/hello.php 實例化: new hello()->world(); * * * * * **5.URL給控制器方法傳參數** ~~~ http://www.phpstart.xyz/test/hello/world/1/2 //對應文件: /test/hello.php //對應方法: new index()->hello(1,2); ~~~ * * * * * **下面是一些測試URL,可以在瀏覽器中測試,程序已包含在下載的phpstart項目中** http://phpstart.xyz/group1/index http://phpstart.xyz/group1/index/cat http://phpstart.xyz/group1/index/dog http://phpstart.xyz/group1/index/dog2 http://phpstart.xyz/group1/index/dog3 http://phpstart.xyz/group1/index/book http://phpstart.xyz/group1/index/student http://phpstart.xyz/group1/index/myfunc http://phpstart.xyz/group1/index/cfg http://phpstart.xyz/group1/index/template
                  <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>

                              哎呀哎呀视频在线观看