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

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

  1. <tfoot id='H3A3K'></tfoot>
  2. <legend id='H3A3K'><style id='H3A3K'><dir id='H3A3K'><q id='H3A3K'></q></dir></style></legend>

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

    1. Zend 框架 - 在呈現布局之前執行的最后一段代碼

      Zend Framework - Last Code to Execute Before Layout is Rendered(Zend 框架 - 在呈現布局之前執行的最后一段代碼)

      <legend id='IUUlM'><style id='IUUlM'><dir id='IUUlM'><q id='IUUlM'></q></dir></style></legend>

          1. <tfoot id='IUUlM'></tfoot>

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

              <i id='IUUlM'><tr id='IUUlM'><dt id='IUUlM'><q id='IUUlM'><span id='IUUlM'><b id='IUUlM'><form id='IUUlM'><ins id='IUUlM'></ins><ul id='IUUlM'></ul><sub id='IUUlM'></sub></form><legend id='IUUlM'></legend><bdo id='IUUlM'><pre id='IUUlM'><center id='IUUlM'></center></pre></bdo></b><th id='IUUlM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='IUUlM'><tfoot id='IUUlM'></tfoot><dl id='IUUlM'><fieldset id='IUUlM'></fieldset></dl></div>
                <bdo id='IUUlM'></bdo><ul id='IUUlM'></ul>
                  <tbody id='IUUlM'></tbody>
              • 本文介紹了Zend 框架 - 在呈現布局之前執行的最后一段代碼的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我想在渲染布局之前執行一些代碼,然后執行所有其他代碼.我會把那個代碼放在哪里?

                我特別想在布局使用 headLink、headScript 和 inlineScript 視圖助手中引用的文件之前對其進行修改.

                以下是我要采取的步驟:

                1. 循環那些視圖助手中的文件
                2. 列出本地文件
                3. 從視圖助手中刪除本地文件
                4. 將本地文件列表作為參數引用到服務器腳本,該腳本將它們組合起來用于單個 HTTP 請求
                5. 將新的組合腳本引用添加到適當的視圖助手

                <小時>

                前端控制器插件似乎不會幫助我實現這一點,原因如下:

                1. postDispatch() 在執行每個控制器操作后執行,我需要樣式表/javascripts 的完整列表
                2. dispatchLoopShutdown() 在控制器動作循環后執行,但此時布局已經呈現

                <小時>

                正如 Rufinus 所建議的,我通過擴展視圖助手解決了這個問題.(鏡像)

                您可以通過插件訪問的最后一部分應該是 dispatchLoopShutdown

                ZendFramework2 參見 http://zendframework2.de/en/cheat-sheet.html或 這個 gdoc

                I want to execute some code right before the layout is rendered, after all other code is executed. Where would I put that code?

                I am specifically trying to modify the files referenced in the headLink, headScript, and inlineScript view helpers before they're used by the layout.

                Here are the steps I want to take:

                1. Loop over the files in those view helpers
                2. Make a list of the local files
                3. Remove local files from the view helpers
                4. Reference the local file list as a parameter to a server script that combines them for a single HTTP request
                5. Add that new combine script reference to the appropriate view helper


                It doesn't appear that a Front Controller Plugin is going to help me accomplish this, and here's why:

                1. postDispatch() gets executed after every controller action that's executed, and I need the full list of stylesheets/javascripts
                2. dispatchLoopShutdown() gets executed after the controller action loop, but the layout has already been rendered at this point


                As Rufinus suggested, I solved this by extending the View Helpers. My question from that angle as well as the solution is here.

                解決方案

                see Orginal PDF created by Thorsten Ruf (Mirror)

                the very last part you can access via plugin should be dispatchLoopShutdown

                EDIT: For ZendFramework2 see http://zendframework2.de/en/cheat-sheet.html or this gdoc

                這篇關于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 找不到驅動程序)
                <tfoot id='s68No'></tfoot>
                • <bdo id='s68No'></bdo><ul id='s68No'></ul>

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

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

                          主站蜘蛛池模板: 久久免费精彩视频 | 久久国产精品-国产精品 | 黄色大片免费观看 | 久久av资源网 | 91中文在线观看 | 中文字幕免费视频 | 日韩视频观看 | 国产成人久久精品 | 久久伊人久久 | 狠狠干五月天 | 9久久婷婷国产综合精品性色 | 亚洲精品国产a久久久久久 午夜影院网站 | 日本粉嫩一区二区三区视频 | 国产丝袜人妖cd露出 | 国产精品99久久久久久久久久久久 | h视频免费在线观看 | 中文字幕一区二区三区在线观看 | 一区二区三区影院 | 久优草| 中文字幕一区二区三区不卡 | 日本不卡在线视频 | 久久久www成人免费无遮挡大片 | 日干夜干| 久久精品中文字幕 | 97精品视频在线 | 午夜电影一区二区 | 国产午夜精品久久 | 日韩精品一区二区三区在线播放 | 国产亚洲欧美日韩精品一区二区三区 | 成人在线精品视频 | 情侣酒店偷拍一区二区在线播放 | www.yw193.com| 欧美大片在线观看 | 免费国产一区 | 蜜桃综合在线 | 欧美精品一区二区三区四区五区 | 久久久久久久久久久久久久av | 亚洲精品3 | 欧美极品少妇xxxxⅹ免费视频 | 麻豆视频在线免费看 | 中文字幕一级毛片视频 |