Hi there Tarique,

I have added your suggestion to the edit template and it worked.

Nevertheless one would expect that Cake should output the right form
tag when a validation error is found.

Thanks,

On Jun 22, 2:42 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 6/22/07, oleonav <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I have posted this questions earlier on but no replies so I'll ask you
> > again;
>
> > ---
> > Strange things happen when using multiple validations rules in cake
> > 1.2. in combination with an edit action
>
> > When requesting a edit action for example admin/pages/edit/3 - in the
> > view admin_edit.ctp the helper $form->create('Page'); does output the
> > required form tag
> > <form id="PageEditForm" method="post" action="/admin/pages/edit/3">
>
> > Then the magic happens. If validation fails the helper $form-
> > >create('Page'); does create
>
> > <form id="PageAddForm" method="post" action="/admin/pages/add/">
>
> Try adding the id to your form like  $form->input('Id'); this should give
> you a hidden field with the id and its value - things should work properly
> after that
>
> Tarique
>
> --
> =============================================================
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =============================================================


--~--~---------~--~----~------------~-------~--~----~
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