pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <small id='ZCHHT'></small><noframes id='ZCHHT'>

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

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

        Zend_Controller_Router_Exception:“xyz";未指定

        Zend_Controller_Router_Exception: quot;xyzquot; is not specified(Zend_Controller_Router_Exception:“xyz;未指定)
        <legend id='Y9gAD'><style id='Y9gAD'><dir id='Y9gAD'><q id='Y9gAD'></q></dir></style></legend>

            <tbody id='Y9gAD'></tbody>

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

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

                <tfoot id='Y9gAD'></tfoot>
                  <bdo id='Y9gAD'></bdo><ul id='Y9gAD'></ul>
                • 本文介紹了Zend_Controller_Router_Exception:“xyz";未指定的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我當前的 Zend Framework 應用程序有問題.

                  I have a problem in my current Zend Framework application.

                  在我的 Bootstrap 中,我注冊了這些路由:

                  In my Bootstrap I register these routes:

                  protected function _initRouter()
                  {
                      $this->bootstrap("FrontController");
                      $frontController = $this->getResource("FrontController");
                  
                      $route = new Zend_Controller_Router_Route(
                          ":module/:id",
                          array(
                              "controller" => "index",
                              "action" => "index"
                              ),
                          array("id" => "d+")
                          );
                      $frontController->getRouter()->addRoute('shortcutOne', $route);
                  
                      $route = new Zend_Controller_Router_Route(
                          ":module/:controller/:id",
                          array("action" => "index"),
                          array("id" => "d+")
                          );
                      $frontController->getRouter()->addRoute('shortcutTwo', $route);
                  
                      $route = new Zend_Controller_Router_Route(
                          ":module/:controller/:action/:id",
                          null,
                          array("id" => "d+", "action" => "w+")
                          );
                      $frontController->getRouter()->addRoute('shortcutThree', $route);
                  }
                  

                  現在我將 Zend_Navigation 添加到我的項目中.我有幾個模塊,它們在模塊引導程序中注冊導航元素:

                  Now later I added Zend_Navigation to my project. I have several modules, that register navigation elements in the module bootstrap:

                  <?php
                  
                  class Contact_Bootstrap extends Zend_Application_Module_Bootstrap
                  {
                      protected function _initNavigation()
                      {
                          $layout = $this->getApplication()->getResource("layout");
                          $view = $layout->getView();
                  
                          $config = new Zend_Config_Xml(dirname(__FILE__)."/config/navigation.xml", "nav");
                  
                          $view->navigation()->addPage($config);
                      }
                  }
                  

                  當我在瀏覽器中打開應用程序時,一切正常.這意味著我可以看到導航并單擊其鏈接以查看指定頁面.但是當我點擊一個使用 :module/:action/:id 路由的頁面時,導航助手會拋出一個 Zend_Controller_Router_Route 異常:

                  When I open the app in my browser everything works fine. That means I can see the navigation and click on its links to view the specified page. But when I hit a page that uses the :module/:action/:id route, the Navigation Helper throws a Zend_Controller_Router_Route exception:

                  致命錯誤:Zend_Controller_Router_Exception: id is not specified in C:Entwicklungkt runksrclibraryendViewHelperNavigationHelperAbstract.php 第 519 行

                  Fatal error: Zend_Controller_Router_Exception: id is not specified in C:Entwicklungkt runksrclibraryendViewHelperNavigationHelperAbstract.php on line 519

                  你們中有人也遇到過這個錯誤嗎?如果你能幫助我或給我建議,那就太好了.另外,如果您需要有關我的設置等的更多信息,請告訴我.

                  Did anyone of you experience this error too? It would be great if you could help me or give me advise. Also if you need more information on my setup etc., just tell me.

                  謝謝!

                  推薦答案

                  我自己找到了解決方案.

                  I found the solution myself.

                  這個問題是由于 Zend_Navigation 元素的一個不那么有利的行為引起的.在他們的 getHref() 方法中,他們使用了 URL 助手.此幫助程序創建導航條目必須鏈接到的 URL,采用為導航元素(模塊、控制器、操作等)指定的參數.

                  This problem was caused due to a not-so-beneficial behavior of the Zend_Navigation elements. In their getHref() method they use the URL helper. This helper creates the URL the navigation entry has to link to, taking in the arguments specified for the navigation element (module, controller, action, etc.)

                  現在,問題是,例如,如果您像我一樣在引導程序中創建了自定義路由

                  Now, the problem is that, if you have created a custom route in your bootstrap just as I did, for example

                  ":module/:controller/:id"
                  

                  您遇到的問題是,當使用此路由時,URL 幫助程序使用該路由生成導航條目的鏈接.但是,我沒有傳遞額外的id"參數,所以我得到了異常.

                  You run into the problem that when this route is being used, the URL helper uses that route to generate the link for the navigation entry. However, I did not pass on an additional "id" parameter, so I got the exception.

                  因此,一種解決方案是為每個 Zend_Navigation_Page_Mvc 實例路由"傳遞一個附加參數,該參數設置為默認".

                  So one solution is to pass an additional parameter for each Zend_Navigation_Page_Mvc instance "route" which is set to "default".

                  我還沒有嘗試過的另一種解決方案是讓新的自定義路由將自身重新映射到默認路由上,例如:

                  Another solution, which I didn't try yet, is to let the new custom route just re-map itself onto the default route, like:

                  ":module/:controller/:action/id/$id"
                  

                  但我不知道您是否有能力使用 Zend Framework 做到這一點.

                  But I don't know if you have the ability with Zend Framework to do that.

                  這篇關于Zend_Controller_Router_Exception:“xyz";未指定的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='e0Vvj'></tfoot>

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

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

                        <bdo id='e0Vvj'></bdo><ul id='e0Vvj'></ul>

                      • <i id='e0Vvj'><tr id='e0Vvj'><dt id='e0Vvj'><q id='e0Vvj'><span id='e0Vvj'><b id='e0Vvj'><form id='e0Vvj'><ins id='e0Vvj'></ins><ul id='e0Vvj'></ul><sub id='e0Vvj'></sub></form><legend id='e0Vvj'></legend><bdo id='e0Vvj'><pre id='e0Vvj'><center id='e0Vvj'></center></pre></bdo></b><th id='e0Vvj'></th></span></q></dt></tr></i><div class="ztrt7tv" id='e0Vvj'><tfoot id='e0Vvj'></tfoot><dl id='e0Vvj'><fieldset id='e0Vvj'></fieldset></dl></div>
                          <tbody id='e0Vvj'></tbody>
                            主站蜘蛛池模板: 无线联网门锁|校园联网门锁|学校智能门锁|公租房智能门锁|保障房管理系统-KEENZY中科易安 | 长沙印刷厂-包装印刷-画册印刷厂家-湖南省日大彩色印务有限公司 青州搬家公司电话_青州搬家公司哪家好「鸿喜」青州搬家 | 硬度计,金相磨抛机_厂家-莱州华煜众信试验仪器有限公司 | 网站建设-临朐爱采购-抖音运营-山东兆通网络科技 | 注塑_注塑加工_注塑模具_塑胶模具_注塑加工厂家_深圳环科 | 武汉印刷厂-不干胶标签印刷厂-武汉不干胶印刷-武汉标签印刷厂-武汉标签制作 - 善进特种标签印刷厂 | 颚式破碎机,圆锥破碎机,制砂机-新乡市德诚机电制造有限公司 | 恒压供水控制柜|无负压|一体化泵站控制柜|PLC远程调试|MCGS触摸屏|自动控制方案-联致自控设备 | 布袋式除尘器|木工除尘器|螺旋输送机|斗式提升机|刮板输送机|除尘器配件-泊头市德佳环保设备 | 蓝牙音频分析仪-多功能-四通道-八通道音频分析仪-东莞市奥普新音频技术有限公司 | 工业机械三维动画制作 环保设备原理三维演示动画 自动化装配产线三维动画制作公司-南京燃动数字 聚合氯化铝_喷雾聚氯化铝_聚合氯化铝铁厂家_郑州亿升化工有限公司 | 耐高温硅酸铝板-硅酸铝棉保温施工|亿欧建设工程 | 昆山PCB加工_SMT贴片_PCB抄板_线路板焊接加工-昆山腾宸电子科技有限公司 | 爆炸冲击传感器-无线遥测传感器-航天星百科 | 减速机电机一体机_带电机减速器一套_德国BOSERL电动机与减速箱生产厂家 | 猎头招聘_深圳猎头公司_知名猎头公司| 板框压滤机-隔膜压滤机-厢式压滤机生产厂家-禹州市君工机械设备有限公司 | 智能案卷柜_卷宗柜_钥匙柜_文件流转柜_装备柜_浙江福源智能科技有限公司 | 温州中研白癜风专科_温州治疗白癜风_温州治疗白癜风医院哪家好_温州哪里治疗白癜风 | 干法制粒机_智能干法制粒机_张家港市开创机械制造有限公司 | 沥青车辙成型机-车托式混凝土取芯机-混凝土塑料试模|鑫高仪器 | 新疆乌鲁木齐网站建设-乌鲁木齐网站制作设计-新疆远璨网络 | 动库网动库商城-体育用品专卖店:羽毛球,乒乓球拍,网球,户外装备,运动鞋,运动包,运动服饰专卖店-正品运动品网上商城动库商城网 - 动库商城 | 预制舱-电力集装箱预制舱-模块化预制舱生产厂家-腾达电器设备 | 磁力加热搅拌器-多工位|大功率|数显恒温磁力搅拌器-司乐仪器官网 | 气动绞车,山东气动绞车,气动绞车厂家-烟台博海石油机械有限公司 气动隔膜泵厂家-温州永嘉定远泵阀有限公司 | 挤奶设备过滤纸,牛奶过滤纸,挤奶机过滤袋-济南蓝贝尔工贸有限公司 | 青岛成人高考_山东成考报名网 | 蒸压釜_蒸养釜_蒸压釜厂家-山东鑫泰鑫智能装备有限公司 | 铸铁平台,大理石平台专业生产厂家_河北-北重机械 | 同学聚会纪念册制作_毕业相册制作-成都顺时针宣传画册设计公司 | 石栏杆_青石栏杆_汉白玉栏杆_花岗岩栏杆 - 【石雕之乡】点石石雕石材厂 | 上海软件开发-上海软件公司-软件外包-企业软件定制开发公司-咏熠科技 | 医学动画公司-制作3d医学动画视频-医疗医学演示动画制作-医学三维动画制作公司 | 天津市能谱科技有限公司-专业的红外光谱仪_红外测油仪_紫外测油仪_红外制样附件_傅里叶红外光谱技术生产服务厂商 | 网站seo优化_seo云优化_搜索引擎seo_启新网络服务中心 | 旗帜网络笔记-免费领取《旗帜网络笔记》电子书 | 苏州西朗门业-欧盟CE|莱茵UL双认证的快速卷帘门品牌厂家 | 北京百度网站优化|北京网站建设公司-百谷网络科技 | 定坤静电科技静电消除器厂家-除静电设备 | 北京银联移动POS机办理_收银POS机_智能pos机_刷卡机_收银系统_个人POS机-谷骐科技【官网】 |