3

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 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

2
  • you can send test_folder_folder2 then str_replace _ with / if you don't whant to mess with the routes Commented Jun 3, 2011 at 12:25
  • unless you use a custom route... this begs the question: why on earth would you want to do this? Commented Jun 3, 2011 at 15:32

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.