Welcome Guest, Not a member yet? Register   Sign In
Dinamic rule validation
#1

hi ,sorry for english ,i have several couple of file everyone size_1  quantity_1 size_2
  quantity_2  ecc the field become to a db's table .
how can i set roule dinamicalii , now my roules are 
[CODE]
            $rules=
            [
                                    'idSize_1'=>[
                                                'rules'=>'check_size_quantity[idSize1,idQuantity1]',
                                                'errors'=>
                                                            'check_size_quantity'=>'You must enter both size and quantity of field XXXX '
                                                          ]
                                                ],
                                   
                                             

                                  ];

[/CODE ]

how can i do this dinamically ? how can i set xxx as field name ?
Reply


Messages In This Thread
Dinamic rule validation - by pippuccio76 - 09-26-2022, 01:05 PM
RE: Dinamic rule validation - by pippuccio76 - 09-27-2022, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB