Perfect!

The id => my_names_here did the trick.

Thanks.

Dave 

-----Original Message-----
From: Marcelo Andrade [mailto:mfandr...@gmail.com] 
Sent: June-17-09 9:07 AM
To: cake-php@googlegroups.com
Subject: Re: Form help


On Tue, Jun 16, 2009 at 4:10 PM, Dave Maharaj ::
WidePixels.com<d...@widepixels.com> wrote:
>
> I have
> <?php echo $form->create($model, array('type' => 'post',  'action' => 
> '/update')); ?>
>
> which renders <form id="settings/updateForm" action="/settings/update"
> method="post">
>
> Is there a way to get it to look like this?
>
> <form id="settings_updateForm" action="update" method="post">


Not sure about the 'action="update"'.  But to define the id, try this

<?php echo $form->create($model, array('type' => 'post',  'action' =>
'/update', 'id'=> 'settings_updateForm')); ?>

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to