Ok adding it as option works.. so i suppose checkbox is not comming
back in 1.2 as the htmlhelpers?
But it still creates a hidden form also? Is there any reason for this
and is there a way to turn it off..
<?php echo $form->input('publish', array('type' => 'checkbox', 'value'
=> 'yes')); ?>
makes:
<div class="input">
<input type="hidden" name="data[Article][publish]" value="0"
id="ArticlePublish_" />
<input type="checkbox" name="data[Article][publish]" value="yes"
id="ArticlePublish" />
<label for="ArticlePublish">Publish</label>
</div>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---