[英]Empty value of GET parameter in zend framework
I'm using zend framework in my site. 我在我的网站中使用zend框架。 URI address one of the page is: http://mysite.com/controller/action/no/123/date//email// 该页面之一的URI地址是: http : //mysite.com/controller/action/no/123/date//email//
I expect to obtain the next GET parameters and values: 我希望获得下一个GET参数和值:
no=>123
date=>
email=>
It's true on localhost but on the web hosting on obtained: 在localhost上是正确的,但在获得的Web托管上:
no=>123
date=>email
It looks like empty values was missed. 好像错过了空值。 What can be a reason for this and how I can it fix? 这可能是什么原因?如何解决?
You have issue there is routes have done like first is key and next is value so, in your url have two blank space. 您遇到的问题是路由已完成,例如first是key,next是value,因此,您的url中有两个空格。 change in url something line below. 在url中更改以下内容。
try like this 这样尝试
http://mysite.com/controller/action/no/123/date/email/ http://mysite.com/controller/action/no/123/date/email/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.