[TYPO3-mvc] Multiple parameters for one action!?

Marc Bastian Heinrichs typo3 at mbh-web.de
Wed May 5 12:05:00 CEST 2010


Hi Roberto,

Am 05.05.10 11:15, schrieb roberto blanko:

>> 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');
>> }
>>
> 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.

I've testet this again, and I have to correct my first mail. It works 
correct using string action parameters and also string mixed with other 
object parameters.

I don't see the reason, why it doesn't work for you. The only thing 
could be the reflection cache.

Regards,
Marc Bastian



More information about the TYPO3-project-typo3v4mvc mailing list