<validator class="MyNameValidator">
<arguments base="a[]">
<argument>name</argument>
</arguments>
</validator>
<validator class="number">
<arguments base="a[]">
<argument>age</argument>
</arguments>
<ae:parameter name="min">18</ae:parameter>
<ae:parameter name="max">120</ae:parameter>
</validator>
<validator class="arraylength">
<arguments base="a[]">
<argument />
</argument>
<ae:parameter name="min">2</ae:parameter>
<ae:parameter name="max">2</ae:parameter>
</validator>On 25.01.2010, at 19:49, Jeramy Wenserit wrote:
Hi, If i've got the following array structure: $a = array( 0 => array( 'name'=>'moo', 'age'=>23 ), 1 => array( 'name'=>'moo', 'age'=>23 ), 2 => array( 'name'=>'moo', 'age'=>23 ), );What is the best way for me validate $a and all the child array items so that i receive the identical array above in my action?Cheers, Jeramy Wenserit (E_mE) e: [email protected] w: www.xylesoft.co.uk _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
