[FLOW3-general] Validation of Arrays in an Action
David Sporer
david.sporer at gmail.com
Mon Sep 24 07:43:56 CEST 2012
Öh don't think xD
-----Ursprüngliche Nachricht-----
Von: flow3-general-bounces at lists.typo3.org
[mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von David Sporer
Gesendet: Montag, 24. September 2012 07:44
An: 'General discussion about FLOW3'
Betreff: Re: [FLOW3-general] Validation of Arrays in an Action
Argh... Thank you!
Sometimes I just think of such things...
-----Ursprüngliche Nachricht-----
Von: flow3-general-bounces at lists.typo3.org
[mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von "Christian
Müller (Kitsunet)"
Gesendet: Sonntag, 23. September 2012 01:34
An: flow3-general at lists.typo3.org
Betreff: Re: [FLOW3-general] Validation of Arrays in an Action
On 22.09.2012 15:02, David Sporer wrote:
> Hi,
>
>
>
> another question:
>
> I'm passing three arrays to an action and I'm validating these which
> works fine.
>
> But I'm struggling at the point where the validation of one array fails.
> Then I want to the new form to contain the already valid values of the
> other arrays.
>
> I saw that it doesn't work automatically.
>
>
>
> e.g.
>
>
>
> newAction(){
>
> }
Exactly here is the problem, your newAction needs to accept your three
arrays with the same names as the createAction, so it should look like this:
newAction($array1 = array(), $array2 = array(), $array3 = array()){
Which allows calling of the newAction without any parameters but if the
arrays are present they are at your disposal in the action. Of course you
need to also assign them to the view then to be able to access the values.
Cheers,
Christian
_______________________________________________
FLOW3-general mailing list
FLOW3-general at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
_______________________________________________
FLOW3-general mailing list
FLOW3-general at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list