[TYPO3-mvc] Multiple parameters for one action!?
roberto blanko
robertoblanko at gmail.com
Wed May 5 11:15:41 CEST 2010
On Wed, May 5, 2010 at 10:24 AM, Marc Bastian Heinrichs <typo3 at mbh-web.de>wrote:
> The GET/POST vars to action parameter mapping works only for objects or
> arrays and not for strings.
> To get an string argument you have to fetch it by your own from the request
> object in your action method:
> $keyword = '';
> if ($this->request->hasArgument('keyword')) {
> $keyword = $this->request->getArgument('keyword');
> }
>
Hey Marc Bastian,
thank you for your help! I'll use your tipp as a workaround. However, the
string mapping seems to work when using only one parameter. I've got
another action, which has a string as only parameter. Only when I combine
String params with objects, it doesn't seem to work anymore.
Is this behavior really intended? Or is there any logic reason for this?
But anyways! Tanks a lot for your feedback!
Roberto
More information about the TYPO3-project-typo3v4mvc
mailing list