You'd have to patch HTMLHelper yourself. It currently does not have
any capability to output a button tag. To it, 'button' means an input
with type = 'button'. This should be changed, IMHO.

On Thu, Mar 27, 2008 at 9:49 AM, MonkeyGirl <[EMAIL PROTECTED]> wrote:
>
>  Hi again gang!
>
>  I stumbled upon a neat article about using HTML button elements, as
>  opposed to input elements that happen to be buttons:
>
>  http://particletree.com/features/rediscovering-the-button-element/
>
>  I think it'd be really neat to get the form helper to generate these.
>  However, when I try to do it using either $form->input('foo',
>  array('type' => 'button')); or $form->button('foo'); , it makes an
>  input element with a type attribute of button, rather than making an
>  actual button element.
>
>  Echoing out the raw HTML just before $form->end(); works just fine,
>  but I'm always wary of going over Cake's head, so I was wondering if
>  there was a way to do it properly.
>
>  Sorry if I'm missing something obvious, but is there a way to get the
>  form helper to generate button elements?
>
>  Thanks again everyone,
>  Zoe.
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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