To me there is a misunderstanding on the syntax of submit ... I do not
think (unless I am very behind 1.2), that the first parameter uses a
"model.field" syntax, it's more likely to be the name of the submit
button..
Now I do not know what you are trying to achieve ..


On Oct 18, 8:18 pm, "manuj bansal" <[EMAIL PROTECTED]> wrote:
> 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