The second parameter to $html->checkbox() is a title, not the html
attributes.  Change it to

$html->checkbox('Article/active', 'Is active', array('checked' =>
'checked'));

and it will work.


Luke wrote:
> I am trying to set up a checkbox to be checked by default by doing
> this:
> $html->checkbox('Article/active', array('checked' => 'checked'));
>


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

Reply via email to