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

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

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

        <bdo id='lIppK'></bdo><ul id='lIppK'></ul>
    2. <legend id='lIppK'><style id='lIppK'><dir id='lIppK'><q id='lIppK'></q></dir></style></legend>

      <tfoot id='lIppK'></tfoot>

        如何向 Zend Framework 2 添加自定義視圖助手

        How to add custom view helpers to Zend Framework 2(如何向 Zend Framework 2 添加自定義視圖助手)
          <tbody id='KRKJG'></tbody>

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

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

            <i id='KRKJG'><tr id='KRKJG'><dt id='KRKJG'><q id='KRKJG'><span id='KRKJG'><b id='KRKJG'><form id='KRKJG'><ins id='KRKJG'></ins><ul id='KRKJG'></ul><sub id='KRKJG'></sub></form><legend id='KRKJG'></legend><bdo id='KRKJG'><pre id='KRKJG'><center id='KRKJG'></center></pre></bdo></b><th id='KRKJG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KRKJG'><tfoot id='KRKJG'></tfoot><dl id='KRKJG'><fieldset id='KRKJG'></fieldset></dl></div>
            • <tfoot id='KRKJG'></tfoot>
                <bdo id='KRKJG'></bdo><ul id='KRKJG'></ul>
                • 本文介紹了如何向 Zend Framework 2 添加自定義視圖助手的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我之前問過這個問題,我在那里得到了很好的答案.但是,這是針對 beta4 的,不再有效.

                  I have earlier asked this question, and I got good answers there. However, that was for beta4, and no longer works.

                  那么我在哪里以及如何將我自己的視圖助手添加到 ZF2?

                  So where and how do I add my own view helpers to ZF2?

                  推薦答案

                  你應該像這樣將它們添加到你的 module.config.php 下的 view_helpers 下:

                  You should add them to your module.config.php under view_helpers like this:

                  'view_manager' => array(
                      'template_path_stack' => array(
                          'ModuleName' => __DIR__ . '/../view',
                      ),
                  ),
                  
                  'view_helpers' => array(
                      'factories' => array(
                          'showmessages' => function($sm) {
                              $helper = new ModuleNameHelperMessageShower();
                              // do stuff with $sm or the $helper
                              return $helper;           
                          },
                      ),
                      'invokables' => array(
                          'selectmenu' => 'ModuleNameHelperSelectMenu',   
                          'prettyurl'  => 'ModuleNameHelperPrettyUrl',
                      ),  
                  ),
                  

                  這里我展示了兩種創建助手的方法.如果它們只需要實例化,只需將它們的名稱(包括命名空間)添加為 invokables.如果您需要對它們或 ServiceManager 進行處理,請通過 factories 關鍵字創建它們.

                  Here I show two ways of creating the helpers. If all they need to do is to be instantiated, just add their name (including namespace) as invokables. If you need to do stuff with them or the ServiceManager, create them through the factories keyword.

                  這篇關于如何向 Zend Framework 2 添加自定義視圖助手的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='FtJw4'></tfoot>

                    <tbody id='FtJw4'></tbody>
                        <bdo id='FtJw4'></bdo><ul id='FtJw4'></ul>
                        <legend id='FtJw4'><style id='FtJw4'><dir id='FtJw4'><q id='FtJw4'></q></dir></style></legend>
                          • <small id='FtJw4'></small><noframes id='FtJw4'>

                          • <i id='FtJw4'><tr id='FtJw4'><dt id='FtJw4'><q id='FtJw4'><span id='FtJw4'><b id='FtJw4'><form id='FtJw4'><ins id='FtJw4'></ins><ul id='FtJw4'></ul><sub id='FtJw4'></sub></form><legend id='FtJw4'></legend><bdo id='FtJw4'><pre id='FtJw4'><center id='FtJw4'></center></pre></bdo></b><th id='FtJw4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='FtJw4'><tfoot id='FtJw4'></tfoot><dl id='FtJw4'><fieldset id='FtJw4'></fieldset></dl></div>
                            主站蜘蛛池模板: 成人av网站在线观看 | 不卡av在线 | av黄色片 | 精品久久久久久亚洲综合网 | 天天干干 | 久久精品国产一区二区 | 欧美日韩国产综合在线 | 久久精品国产亚洲一区二区 | 欧美一级欧美一级在线播放 | 国产激情精品 | 99在线免费观看 | h免费观看 | 麻豆a级片| 亚洲精品日韩精品 | 国产你懂的在线观看 | 欧美小视频在线观看 | 国产一区二区三区高清 | 国产91在线播放 | 久草成人| 色偷偷噜噜噜亚洲男人 | 在线播放中文字幕 | 亚洲视频第一页 | 国产精品精品 | 国产精品不卡一区 | 一区日韩 | 欧美亚洲综合久久 | 久久中文字幕av | chengrenzaixian | 在线观看国产精品视频 | 欧美日韩在线免费 | 成人h动漫亚洲一区二区 | 欧美成人免费在线视频 | 成人免费视频一区 | 久久精品视频9 | 免费成人毛片 | 久久99精品久久久久婷婷 | 国产午夜精品一区二区三区嫩草 | 性高湖久久久久久久久 | 亚洲精品aⅴ | 色黄网站| 国产精品片|