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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ## 配置文件 ### 推薦使用 [Annotation格式路由](Annotation格式路由.md) 自動生成路由規則 GFPHP 的路由配置文件目錄為 ``Router``,添加路由規則需要添加文件``Router/項目名/路由文件.php``,其中項目名稱是初始化項目時``GFPHP::init('項目名')`` 中的名稱. ## 配置寫法 路由規則的寫法是以正則方式,規則中匹配到的值會傳入到方法. #### 全部請求 此種配置方式,將會匹配所有的請求方式. ``` \GFPHP\Router::all('index.html','System/Home@index'); ``` #### GET請求 ``` \GFPHP\Router::get('index.html','System/Home@index'); ``` #### POST請求 ``` \GFPHP\Router::post('index.html','System/Home@index'); ``` #### PUT請求 ``` \GFPHP\Router::put('index.html','System/Home@index'); ``` #### DELETE請求 ``` \GFPHP\Router::delete('index.html','System/Home@index'); ``` #### HEAD請求 ``` \GFPHP\Router::head('index.html','System/Home@index'); ``` ### 將路由注冊到匿名函數 ``` \GFPHP\Router::all('index.html',function(){ return 'Hello GFPHP'; }); ``` ### 匹配傳值 ``` //-- 指向Action \GFPHP\Router::all('article-(\d+).html','System/Article@view'); //-- 匿名寫法 \GFPHP\Router::all('article-(\d+).html',function($article_id){ return '文章ID:' . $article_id; }); ```
                  <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>

                              哎呀哎呀视频在线观看