<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                >## 給操作方法綁定參數 >### URL地址中的參數會自動和操作方法的 同名參數 綁定,省去了手動獲取 > 按順序綁定參數的話,操作方法的參數只能使用URL pathinfo變量,而不能使用get或者post變量。 ``` class Blog { // 最好始終給參數添加默認值,如果不加訪問時不帶這個參數就會報錯 public function read($id = 0) { return 'id='.$id; } // 參數的順序是可以隨意設置的,沒有限制 public function archive($year='2016',$month='01') { return 'year='.$year.'&month='.$month; } } // 如果為了美化url地址需要,可以指定參數的順序,在配置文件中如下修改 // URL參數方式改成順序解析 'url_param_type' => 1, ``` >## 給構造方法綁定參數 ``` class Blog { protected $name; public function __construct($name = null) { $this->name = $name; } } // 訪問:http://localhost/index/index/index/name/thinkphp // 當前請求的路由變量name的值thinkphp會自動傳入架構方法的name變量 ```
                  <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>

                              哎呀哎呀视频在线观看