English 中文(简体)
帮助 Zend_Registry 辍学关键的兰s
原标题:help Zend_Registry drops key lang out

能够说明,为什么在语言原始和对应的custom路上,关键地兰消失。 I m 从内部模型中进行电话登记,在定制路线内进行。

http://pastie.org/1088574

 Message: No entry is registered for key  lang 
Stack trace:

#0 C:xamppxampphtdocschatapplicationmodelsGetcategories.php(15): Zend_Registry::get( lang )
#1 C:xamppxampphtdocschatlibraryRoutesCategories.php(64): Getcategories->__construct()
#2 C:xamppxampphtdocschatlibraryendControllerRouterRewrite.php(398): Routes_Categories->match( /ru/woman-searc... )
#3 C:xamppxampphtdocschatlibraryendControllerFront.php(911): Zend_Controller_Router_Rewrite->route(Object(Zend_Controller_Request_Http))
#4 C:xamppxampphtdocschatlibraryendControllerFront.php(212): Zend_Controller_Front->dispatch()
#5 C:xamppxampphtdocschatapplicationBootstrap.php(65): Zend_Controller_Front::run( C:xamppxampp... )
#6 C:xamppxampphtdocschatpublicindex.php(34): Bootstrap->run(Array)
#7 {main}  

我在语言面粉中进行了检查,对地兰钥匙进行了记录。

Zend_Registry:get( lang )也 exception在路边。

最佳回答

确保书记官处所在地点设在<代码>。 Plugins_LangSelector:routeStartup(),以便登记在<>之前处理这些路线。

摘自ZF-Manual:Plugins

登机 前线呼吁航道者评估对已登记路线的请求。

如果你在路线上设定了关键位置,即:前线、派系或派遣LoopShutdown()到晚。

问题回答

暂无回答




相关问题
Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

Tagging with Zend Framework

I m trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL ...

dynamicaly adding textboxes to zend_form

I hope that this is a quick question to answer. I am developing a form using Zend_Form, I have a number of Zend_Dojo_Form_Element_Textboxs to add to this form dynamically. These are added from rows ...

热门标签