i am working in cakephp1.2

my view code is like this

$i=0;
foreach($rows as row)
{
    $i++
    echo 
$form->submit('Modelname.name'.$i,array('labe'=>'labelname','error'=>'length
should be less than 20 characters'));
}

in my model code validation is like this

var $validate = array(*'name*' => array('error' => array('maxLength', 20)));

now problem comes in name it should be like 'name'.$i

but it gives error to 'foreach loop' when running in model

i want to use this inbuilt function

plz help me to sort out this issue THANKS IN ADVANCE

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to