RE: Form help

2009-06-17 Thread Dave Maharaj :: WidePixels.com

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 wrote:
>
> I have
> create($model, array('type' => 'post',  'action' => 
> '/update')); ?>
>
> which renders  method="post">
>
> Is there a way to get it to look like this?
>
> 


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

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



Re: Form help

2009-06-17 Thread Marcelo Andrade

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


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

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



RE: Form help

2009-06-16 Thread Dave Maharaj :: WidePixels.com

Nope

That renders:



I have a custom controller action which uses 1 form and 1 action to allow a
user to update various sections. So rather than build multiple forms/actions
I use 1 which builds the form based on the section they choose to update and
is working fineexcept I need to edit the form ID that gets generated
automaticaly, a user may choose to edit 2 or more sections at once and
loading the form with the same ID is certainly a no no

-Original Message-
From: thatsgreat2345 [mailto:thatsgreat2...@gmail.com] 
Sent: June-16-09 6:04 PM
To: CakePHP
Subject: Re: Form help


create($model, array('type' => 'post',  'url' =>
'/update')); ?>

On Jun 16, 12:10 pm, "Dave Maharaj :: WidePixels.com"
 wrote:
> I have
> create($model, array('type' => 'post',  'action' => 
> '/update')); ?>
>
> which renders  method="post">
>
> Is there a way to get it to look like this?
>
> 
>
> Dave


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



Re: Form help

2009-06-16 Thread thatsgreat2345

create($model, array('type' => 'post',  'url' =>
'/update')); ?>

On Jun 16, 12:10 pm, "Dave Maharaj :: WidePixels.com"
 wrote:
> I have
> create($model, array('type' => 'post',  'action' =>
> '/update')); ?>
>
> which renders  method="post">
>
> Is there a way to get it to look like this?
>
> 
>
> Dave
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---