Re: Checkboxes doesn't appear "checked"

2006-06-02 Thread [EMAIL PROTECTED]
hi if you are using controller code generated by bake try changing $data in edit and add function to $this->data and set a value of 1 in your $html->checkbox options array hope this helps --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Checkboxes doesn't appear "checked"

2006-06-02 Thread Sven Homrighausen
Here's some more info to my code in the "edit"-view: Visible checkbox('CmsPage/visible', null, array('checked' => $cms_pages['CmsPage']['visible'] ? 'checked' : '', ))?> tagErrorMsg('CmsPage/visible', 'Error message for visible goes here.') ?> --~--~-~--~

Checkboxes doesn't appear "checked"

2006-06-02 Thread Sven Homrighausen
Hi there! I'm using cakephp version 1.1.3.2967. While managing my data with scaffolding I've some problems with checkboxes. Let's say there's a TINYINT(1) "visible" in my table "pages". The related checkbox is going to be generated as it should in my views, but it is always unchecked, although th