开发者

Zend framework action parameter

开发者 https://www.devze.com 2023-03-10 17:18 出处:网络
I want to pass an entire path as an action parameter to my controller action. mycontroller/myaction/myparameter/path_value

I want to pass an entire path as an action parameter to my controller action.

mycontroller/myaction/myparameter/path_value

e.g. path_value could be something like test/folder/folder2

I do not want to urlencode the parameter. Is it possible that in my controller action 开发者_JAVA技巧I can get the entire path as the parameter value for 'myparameter' (so, 'test/folder/folder2') instead of only 'test'.

I hope I am clear enough. Tnx in advance


You can pass it as <baseurl>?myparameter=test/folder/folder2


You will have to modify Zend's routing in order to do what you are attempting. Encoding the path may be much simpler for you. I suppose you could send this variable as a POST rather than a GET.

0

精彩评论

暂无评论...
验证码 换一张
取 消