I'm using version 1.2.0.5427alpha, and I'm seeing very weird output
from $form->checkbox().

My code looks like:

$name="Model.field';
echo $form->checkbox($name,array('label'=>false,'div'=>false,'value'=>
$somevalue);

The output is something like:

<div><input type="hidden" name="data[Model][Field]" value="0"
id="Datebook.Field_" />
<input type="checkbox" name="data[Model][Field]" type="checkbox"
label="" div="" value="633" id="DatebookField" />

I don't know where to begin with this.   Why is there a hidden <input>
being output.   Why is a <div> inserted even though I think I've asked
it not to.   This worked on $form->input().   And then there's those
'label=""' and 'div=''' attributes?   Clearly I'm doing something
wrong.

Thanks for any help.


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