久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='SCfhO'></bdo><ul id='SCfhO'></ul>
  • <i id='SCfhO'><tr id='SCfhO'><dt id='SCfhO'><q id='SCfhO'><span id='SCfhO'><b id='SCfhO'><form id='SCfhO'><ins id='SCfhO'></ins><ul id='SCfhO'></ul><sub id='SCfhO'></sub></form><legend id='SCfhO'></legend><bdo id='SCfhO'><pre id='SCfhO'><center id='SCfhO'></center></pre></bdo></b><th id='SCfhO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SCfhO'><tfoot id='SCfhO'></tfoot><dl id='SCfhO'><fieldset id='SCfhO'></fieldset></dl></div>
    <legend id='SCfhO'><style id='SCfhO'><dir id='SCfhO'><q id='SCfhO'></q></dir></style></legend>

    1. <tfoot id='SCfhO'></tfoot>
      1. <small id='SCfhO'></small><noframes id='SCfhO'>

        Zend框架中重定向和轉發有什么區別

        What is the difference between redirect and forward in Zend framework(Zend框架中重定向和轉發有什么區別)

        <small id='Bog05'></small><noframes id='Bog05'>

      2. <tfoot id='Bog05'></tfoot>

          • <bdo id='Bog05'></bdo><ul id='Bog05'></ul>
            • <legend id='Bog05'><style id='Bog05'><dir id='Bog05'><q id='Bog05'></q></dir></style></legend>

                <tbody id='Bog05'></tbody>
              <i id='Bog05'><tr id='Bog05'><dt id='Bog05'><q id='Bog05'><span id='Bog05'><b id='Bog05'><form id='Bog05'><ins id='Bog05'></ins><ul id='Bog05'></ul><sub id='Bog05'></sub></form><legend id='Bog05'></legend><bdo id='Bog05'><pre id='Bog05'><center id='Bog05'></center></pre></bdo></b><th id='Bog05'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Bog05'><tfoot id='Bog05'></tfoot><dl id='Bog05'><fieldset id='Bog05'></fieldset></dl></div>
                  本文介紹了Zend框架中重定向和轉發有什么區別的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  Zend 框架中重定向和轉發的區別是什么?

                  What is the difference between redirect and forward in Zend framework?

                  什么時候應該使用重定向,什么時候應該使用轉發?

                  When we should use redirect and when should we use forward?

                  推薦答案

                  _forward() 只是將所有內容轉發到另一個控制器操作,而 _redirect() 發送一個標頭,這意味著您創建一個新的 HTTP 請求并使用它完成整個調度過程.

                  _forward() just forwards everything to another controller action, while _redirect() sends a header, meaning you create a new HTTP Request and go through the entire dispatch process with it.

                  例如,如果您調用 http://example.com/foo/bar 你會調用 foo 控制器和 bar 動作.如果您在 bar 操作內部轉發到 baz 操作,例如在同一個請求中,瀏覽器仍然在同一個 URL 上,而在進行重定向時,ZF 會指示瀏覽器加載 http://example.com/foo/baz.

                  For instance, if you call up http://example.com/foo/bar you'd call the foo controller and bar action. If you forward inside the bar action to the baz action, e.g. within the very same request, the browser would still be on the same URL, while when doing a redirect, ZF would instruct the browser to load http://example.com/foo/baz.

                  本質上,_forward() 確實

                  $request->setActionName($action)
                          ->setDispatched(false);
                  

                  _redirect() 確實

                  $this->_helper->redirector->gotoUrl($url, $options);
                  

                  當我想防止重新加載頁面導致重新發布表單數據時,我通常會進行重定向.

                  I usually do redirects when I want to prevent reload a page resulting in reposting form data.

                  看到這些:

                  • Zend 框架,$this->_forward 正在做什么
                  • http://osdir.com/ml/php.zend.framework.mvc/2007-09/msg00038.html
                  • http:///framework.zend.com/svn/framework/standard/trunk/library/Zend/Controller/Action/Helper/Redirector.php

                  這篇關于Zend框架中重定向和轉發有什么區別的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                    <tbody id='LEuvp'></tbody>

                    <small id='LEuvp'></small><noframes id='LEuvp'>

                  • <tfoot id='LEuvp'></tfoot>
                  • <i id='LEuvp'><tr id='LEuvp'><dt id='LEuvp'><q id='LEuvp'><span id='LEuvp'><b id='LEuvp'><form id='LEuvp'><ins id='LEuvp'></ins><ul id='LEuvp'></ul><sub id='LEuvp'></sub></form><legend id='LEuvp'></legend><bdo id='LEuvp'><pre id='LEuvp'><center id='LEuvp'></center></pre></bdo></b><th id='LEuvp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LEuvp'><tfoot id='LEuvp'></tfoot><dl id='LEuvp'><fieldset id='LEuvp'></fieldset></dl></div>

                    1. <legend id='LEuvp'><style id='LEuvp'><dir id='LEuvp'><q id='LEuvp'></q></dir></style></legend>
                            <bdo id='LEuvp'></bdo><ul id='LEuvp'></ul>

                            主站蜘蛛池模板: 天堂国产 | 久久久久久久久久性 | 亚洲综合五月天婷婷 | 国产亚洲精品久久久久久豆腐 | 91污在线| 国产免费一区 | 在线视频一区二区三区 | 国产精品一区二区三区在线 | 亚洲精品久久久久久久不卡四虎 | 色播视频在线观看 | 亚洲精品久久久久久久久久久 | 麻豆91av | 久久久久国产一级毛片 | 一区二区三区日韩 | 毛片久久久 | 久久久久综合 | 欧美在线a | 最新国产视频 | 久久精品女人天堂av | 久久91精品国产 | 在线免费观看欧美 | 99精品久久 | 日韩精品免费视频 | 成人av免费在线观看 | 欧美一级免费 | 大久| 日韩欧美中文字幕在线观看 | 亚洲一区精品视频 | 亚洲精品短视频 | 欧美亚洲高清 | 精品国产乱码久久久久久牛牛 | 亚洲精品一区二 | 狠狠综合久久av一区二区老牛 | 日韩一区中文字幕 | 欧美综合一区 | 精品一区二区三区四区五区 | 国产精品二区三区在线观看 | 岛国毛片在线观看 | 草草草久久久 | 国产精品黄色 | 中国一级特黄真人毛片 |