<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 設置生成對應的 URL 地址,為此,QueryPHP 內置提供了 Q::url 方法,用于 URL 的動態生成,可以確保項目在移植過程中不受環境的影響。 Q::url 方法的定義規則如下(方括號內參數根據實際應用決定): ~~~ Q::url('[應用://]控制器/方法?參數1=值1',額外參數,擴展參數); ~~~ 如果不定義應用和控制器的話 就表示當前應用和控制器名稱,下面是一些簡單的例子: ~~~ # /index.php/myapp/hello/world/id/5/name/yes.html \Q::url( 'myapp://hello/world' ,['id'=>5,'name'=>'yes']); # /index.php/myapp/index/test.html echo \Q::url( 'myapp://test'); ~~~ # 自定義 url 系統支持路由設置,像路由這種可以我們通過自定義 url 來生成地址。 ~~~ # /hello-world.html \Q::url('/hello-world'); # /new-5-tom.html \Q::url('/new-{id}-{name}', ['id' => 5, 'name' => 'tom']); ~~~ # 強制使用普通 url 模式 在有些業務場景,無論系統設置什么樣的 url 模式都生成普通的 url 地址。 ~~~ # /index.php?app=home&c=hello&a=world \Q::url ( 'hello/world', [ ], [ 'normal' => true ] ); ~~~ # 是否包含后綴 系統默認開啟后綴,如果存在則會在尾部加入,默認后綴為 url_html_suffix ~~~ 'url_html_suffix' => '.html' ~~~ 我們可以通過 suffix 參數來關閉后綴,或者自定義后綴。 ~~~ # /index.php/hello/world echo \Q::url ( 'hello/world', [ ], [ 'suffix' => false ] ); # /index.php/hello/world.jsp echo \Q::url ( 'hello/world', [ ], [ 'suffix' => '.jsp' ] ); ~~~ # 泛域名支持 如果你的系統有著復雜二級域名,那么可以通過這樣子實現。 ~~~ 'url_router_domain_top' => 'queryphp.cn' 'url_make_subdomain_on' => true ~~~ 例子: ~~~ # http://www.queryphp.cn/index.php/hello/world.html \Q::url ( 'hello/world' ); # http://vip.queryphp.cn/index.php/hello/world.html \Q::url ( 'hello/world', [ ], [ 'subdomain' => 'vip' ] ); # http://defu.vip.queryphp.cn/index.php/hello/world.html \Q::url ( 'hello/world', [ ], [ 'subdomain' => 'defu.vip' ] ); # http://queryphp.cn/index.php/hello/world.html \Q::url ( 'hello/world', [ ], [ 'subdomain' => '*' ] ); ~~~ > 說明:大家可以綜合運用本文的提到的功能以滿足你的項目需求。
                  <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>

                              哎呀哎呀视频在线观看