[TYPO3-mvc] getting the arguments of the form?

Sebastian Schreiber me at schreibersebastian.de
Mon Feb 20 14:07:17 CET 2012


Hi Stig,
no, i don´t think so.
You have to cope with it.
In Phython you were able to use something simliar to that:
$this->request->getArgument('person')['streetName'].

That´s a pity, but it is PHP.


Am 20.02.2012 13:59, schrieb Stig Nørgaard Færch:
> So you are saying, that with getArgument I cannot access the field 
> directly, right?
>
> But are there other one-code-line options? I guess that's my question...
>
> /Stig
>
> Den 20-02-2012 13:46, Claus Due skrev:
>> Hi Stig,
>>
>> If reading directly from the action that accepts the argument:
>> $arguments = $this->request->getArgument('person');
>>
>> If reading from a forwarded-to action, for example returned to 
>> newAction:
>> $arguments = 
>> $this->request->getOriginalRequest->getArgument($argumentName);
>>
>> …returns the raw, un-mapped value of the original request's argument 
>> $argumentName, which is an array, containing index "streetName" if 
>> this was posted.
>>
>> That is, if I remember things correctly.
>>
>> Cheers,
>> Claus
>>
>> On Feb 20, 2012, at 1:33 PM, Stig Nørgaard Færch wrote:
>>
>>> I could have input form with the name:
>>> tx_myext_user_myextadmin[person][streetName]
>>>
>>> then I could get the person array with:
>>> $this->request->getArgument('person');
>>>
>>> But is possible to check directly on above input field?
>>> It doesn't seem like getArgument does the job here - but are there 
>>> other methods to use?
>>>
>>> /Stig
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc 
>>>
>>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675



More information about the TYPO3-project-typo3v4mvc mailing list