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 the correct data is being inserted into my database when I
check it once and the object output also shows the correct value like
this:
[Page] = Array
(
[id] = 1
[title] = Home
[nav_title] = home
[visible] = 1
...
  )

As you see visible is set, but the checkbox doesn't appear checked.

I found a ticket relating to that issue but it seems like it was for
version 2???

Any suggestions to my problem?
Thanks, Sven


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



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