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

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

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

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

      1. Zend Framework - 多板導(dǎo)航塊

        Zend Framework - multiplate navigation blocks(Zend Framework - 多板導(dǎo)航塊)
            <tbody id='NdXMM'></tbody>

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

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

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

                <tfoot id='NdXMM'></tfoot>

                  本文介紹了Zend Framework - 多板導(dǎo)航塊的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我想使用導(dǎo)航助手通過(guò) Acl 構(gòu)建我的導(dǎo)航菜單.我的 Acl 部分工作正常.

                  I want to use the navigation helper to build my navigation menus using Acl. The Acl part I have working fine.

                  我現(xiàn)在希望能夠顯示幾種不同類型的導(dǎo)航.例如.admin-nav、side-nav、new-nav 等.我在文檔中找不到任何關(guān)于此的信息.只有如何設(shè)置導(dǎo)航,然后在布局或視圖中重復(fù)使用該導(dǎo)航對(duì)象.

                  I now want to be able to display a few different types of navigation. E.g. admin-nav, side-nav, new-nav, etc. I cannot find anything about this in the docs. Only how to set the navigation and then use that one navigation object repeatedly within a layout or view.

                  我嘗試了類似的方法 - 有兩個(gè)不同的容器,具有不同的頁(yè)面數(shù)組,然后在注冊(cè)表中設(shè)置這些容器.然后從我的視圖和/或布局中調(diào)用導(dǎo)航并將其傳遞給一個(gè)容器:

                  I tried something similar to this - having two different containers, with different arrays of pages, then setting these containers in the registry. Then from within my view and/or layout calling navigation and passing it a container:

                  <?php echo $this->navigation(Zend_Registry::get("news-nav")) ?>
                  

                  上面在我的新聞視圖中調(diào)用,下面在我的布局中調(diào)用

                  The above is called in my news view, the following is called in my layout

                  <?php echo $this->navigation(Zend_Registry::get("admin-nav")) ?>
                  

                  這適用于我的所有頁(yè)面,除了新聞頁(yè)面.在我的新聞頁(yè)面上,新聞導(dǎo)航顯示兩次,一次在布局中,一次在新聞視圖中.管理導(dǎo)航從不顯示,似乎被新聞導(dǎo)航覆蓋.

                  This works fine for all my pages, apart from the news page. On my news page the nav for news is displayed twice, once in the layout and once in the news view. The admin nav is never displayed and seems to be overwritten by the news nav.

                  我可能會(huì)以完全錯(cuò)誤的方式解決這個(gè)問(wèn)題,如果是這樣,請(qǐng)告訴我更好的方法.如果這個(gè)方法看起來(lái)不錯(cuò),有人能幫我弄清楚為什么在布局和新聞視圖中顯示新聞導(dǎo)航.

                  I could be going about this completely the wrong way, if so please let me know a better way. If this method seems fine, can someone help me sort out why the news nav is being displayed in the layout and in the news view.

                  感謝您的時(shí)間

                  杰克

                  推薦答案

                  我遇到了完全相同的問(wèn)題.我只是在我的控制器中為我需要的每個(gè)菜單創(chuàng)建多個(gè) Zend_Navigation_Container 實(shí)例,將它們傳遞給視圖,然后通過(guò)將對(duì)象直接傳遞給菜單渲染方法來(lái)渲染它們.如下:

                  I have had this exact same issue. I just create multiple instances of Zend_Navigation_Container in my controllers for each of the menus I need, pass them to the view and then render them by passing the objects directly to the menu render method. As follows:

                  在控制器中:

                  $this->view->menu1 = new Zend_Navigation_Container();
                  $this->view->menu2 = new Zend_Navigation_Container();
                  

                  在視圖中:

                  $this->navigation()->menu()->renderMenu($this->menu1);
                  $this->navigation()->menu()->renderMenu($this->menu2);
                  

                  您甚至可以自定義每一個(gè)(通過(guò)在初始 menu() 調(diào)用后插入方法調(diào)用:

                  You could even customise each one (by inserting method calls after the initial menu() call:

                  $this->navigation()->menu()->setUlClass('my_first_menu')->renderMenu($this->menu1);
                  $this->navigation()->menu()->setUlClass('my_second_menu')->renderMenu($this->menu2);
                  

                  這篇關(guān)于Zend Framework - 多板導(dǎo)航塊的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)
                1. <small id='GYT38'></small><noframes id='GYT38'>

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

                            <i id='GYT38'><tr id='GYT38'><dt id='GYT38'><q id='GYT38'><span id='GYT38'><b id='GYT38'><form id='GYT38'><ins id='GYT38'></ins><ul id='GYT38'></ul><sub id='GYT38'></sub></form><legend id='GYT38'></legend><bdo id='GYT38'><pre id='GYT38'><center id='GYT38'></center></pre></bdo></b><th id='GYT38'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GYT38'><tfoot id='GYT38'></tfoot><dl id='GYT38'><fieldset id='GYT38'></fieldset></dl></div>
                              <tbody id='GYT38'></tbody>
                            主站蜘蛛池模板: 国产一区二区三区在线 | 麻豆久久久9性大片 | 欧美一级二级视频 | 国产精品视频免费观看 | 99爱免费| 一区二区三区播放 | 欧美精品在线播放 | www.狠狠干| 男人的天堂中文字幕 | 亚洲日韩中文字幕一区 | 国产精品mv在线观看 | 日韩精品免费在线观看 | 欧美极品在线播放 | 欧美自拍另类 | 国产日韩一区二区三区 | 91日日| 热re99久久精品国99热观看 | 二区在线视频 | 成人av免费| 伊人久久综合 | 日韩天堂av | 亚洲欧洲成人av每日更新 | 蜜桃一区二区三区 | www天天操 | 超碰成人免费观看 | 野狼在线社区2017入口 | 中文字幕亚洲视频 | 免费簧片视频 | 成人h片在线观看 | 女人av | 国产精品久久av | 久久亚洲国产 | 亚洲男女视频在线观看 | 久久久av中文字幕 | 成人三级视频 | 国产欧美精品区一区二区三区 | 亚洲精品一区中文字幕 | 精品国产一区二区在线 | 曰韩一二三区 | 成人一区二区在线 | 6080亚洲精品一区二区 |