Search code examples
zend-frameworkzend-controller

Zend framework action parameter


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


Solution

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