久久久久久久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精品国产综合久久久久久蜜臀 | 亚洲免费视频播放 | 亚洲国产中文在线 | 99热这里只有精品8 激情毛片 | 人人干视频在线 | 亚洲一区欧美 | 日本在线看片 | 国产午夜精品一区二区三区四区 | 久久精品亚洲精品国产欧美kt∨ | 日韩在线欧美 | 色橹橹欧美在线观看视频高清 | 在线观看亚洲欧美 | 永久免费在线观看 | 欧美日韩在线视频一区 | 天天天操操操 | 免费在线观看h片 | 久久99精品视频 | 91精品成人久久 | 五月婷婷亚洲 | 久久久女女女女999久久 | 久久国产精品亚洲 | 人人看人人搞 | 久久精品女人天堂av | 狠狠av| 欧美一级在线 | 精品久久久久久久久久久 | 欧美一级免费看 | 在线日韩 | 日韩精品久久一区二区三区 | 北条麻妃国产九九九精品小说 | 香蕉久久a毛片 | 福利视频三区 | 国内精品视频在线 | 黄色在线观看 | 中文字幕亚洲精品 | 久久国色 | 国产欧美精品一区二区三区 | 久久99精品久久久久蜜桃tv | 日韩欧美在线不卡 |