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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## **cli創建`RESTFul`資源控制器** ### **單應用模式:** ~~~ php think make:controller Blog ~~~ ### **多應用模式:** ~~~ php think make:controller admin@Blog ~~~ 或者使用完整的命名空間生成(多級控制器、多應用需要) ~~~ php think make:controller app\admin\controller\Blog ~~~ 然后你只需要為資源控制器注冊一個資源路由: ~~~ Route::resource('blog', 'Blog'); ~~~ 設置后會自動注冊7個路由規則,對應資源控制器的7個方法,更多內容請參考資源路由章節。 ``` <?php namespace app\admin\controller; use think\Request; class Blog { /** * 顯示資源列表 * * @return \think\Response */ public function index() { // } /** * 顯示創建資源表單頁. * * @return \think\Response */ public function create() { // } /** * 保存新建的資源 * * @param \think\Request $request * @return \think\Response */ public function save(Request $request) { // } /** * 顯示指定的資源 * * @param int $id * @return \think\Response */ public function read($id) { // } /** * 顯示編輯資源表單頁. * * @param int $id * @return \think\Response */ public function edit($id) { // } /** * 保存更新的資源 * * @param \think\Request $request * @param int $id * @return \think\Response */ public function update(Request $request, $id) { // } /** * 刪除指定資源 * * @param int $id * @return \think\Response */ public function delete($id) { // } } ``` >[danger] php的版本至少7.1否則報錯: > PHP Fatal error: Uncaught TypeError: Return value of think\Container::setInstan ce() must be an instance of think\void, none returned in D:\phpStudy\WWW\tp6\ven dor\topthink\framework\src\think\Container.php:85
                  <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>

                              哎呀哎呀视频在线观看