<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之旅 廣告
                官方文檔:http://www.hmoore.net/manual/thinkphp5/118035 ## 設置自動7個路由規則系統提供的 <br/> | 標識 | 請求類型 | 生成路由規則 | 對應操作方法(默認) | | --- | --- | --- | --- | | index | GET | `blog` | index | | create | GET | `blog/create` | create | | save | POST | `blog` | save | | read | GET | `blog/:id` | read | | edit | GET | `blog/:id/edit` | edit | | update | PUT | `blog/:id` | update | | delete | DELETE | `blog/:id` | delete | ## 使用方法: 代碼案例: -----------------------------------route.php文件里---------------------------- ~~~ <?php use think\Route; Route::resource('article','admin/article'); ~~~ ---------------admin/controller/Article.php文件里的內容--------------------- ~~~ <?php namespace app\admin\controller; class Article { public function index(){ dump( 'this is index'); } public function create() { dump( 'this is create'); } public function save() { dump( 'this is save'); } public function read() { dump( 'this is read'); } public function edit() { dump( 'this is edit'); } public function update() { dump( 'this is update'); } public function delete() { dump( 'this is delete'); } } ~~~ 按照生成路由規則添加寫就行了 ~~~ http://127.0.0.1/index.php/article //默認訪問idnex方法 http://127.0.0.1/index.php/article/128 //訪問read方法 http://127.0.0.1/index.php/article/128 /edit //訪問edit方法 ~~~ ![](https://img.kancloud.cn/33/6b/336b41ef7dd78607c327e2cd9ec122ab_1170x409.png) ## 注意:以上所有 article是自定義的 可以根據項目隨便定義了 # 自動生成資源路由 ``` tp5根目錄下執行 php think make:controller admin/Articlecontroller 就可以在admiin模塊下生成資源路由 如果是index模塊下就是 php think make:controller index/Articlecontroller ``` ![](https://img.kancloud.cn/3d/e6/3de6512e8eb1e00a893783e190a424e9_1919x920.png)
                  <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>

                              哎呀哎呀视频在线观看