On Wed, Jun 3, 2009 at 4:22 PM, Dave Maharaj :: WidePixels.com
<[email protected]> wrote:
> Is there a helper for a button to clear a form?
>
> I have <?php echo $form->button('Reset', array('type' => 'reset' , 'name' =>
> 'Reset' , 'id' => 'button' , 'value' => 'Reset')); ?> which creates the
> button but clicking it does nothing.
>
> Am i missing something?

I think the form helper can't be used to create a reset
button.  I didn't found a $form->reset() method in it :-(
Maybe we should create a ticket for enhancement?

You should do it with plain regular html anyway.

<input type="reset" value="Reset" />

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