Log message #110226

# At Username Text
# Aug 7th 2008, 16:46 pgcd_away the code for checkbox() will set it as checked only if they are the same
# Aug 7th 2008, 16:45 pgcd_away i notice the values are 0 and 1
# Aug 7th 2008, 16:45 beatzombies ooops
# Aug 7th 2008, 16:45 beatzombies tecknoid: http://bin.cakephp.org/view/1570066558
# Aug 7th 2008, 16:44 beatzombies pgcd_away: yes i did
# Aug 7th 2008, 16:44 beatzombies pgcd_away: http://bin.cakephp.org/view/1570066558
# Aug 7th 2008, 16:44 pgcd_away beatzombies: you did try checkbox without $options, did you?
# Aug 7th 2008, 16:43 teknoid beatzombies: what's the resulting html?
# Aug 7th 2008, 16:42 beatzombies teknoid: yes, echo($item['ContributorsItem']['contributed']); produces the correct value
# Aug 7th 2008, 16:41 teknoid beatzombies: yeah, that should work... is your $item['ContributorsItem']['contributed'] showing the correct value?
# Aug 7th 2008, 16:40 beatzombies teknoid: i tried that and it does not work. is that what you are talking about?
# Aug 7th 2008, 16:40 beatzombies teknoid: <?php echo $form->checkbox('ContributorsItem.contributed', array('checked'=> $item['ContributorsItem']['contributed'])); ?>
# Aug 7th 2008, 16:38 renan_saddam )
# Aug 7th 2008, 16:38 renan_saddam overwritten
# Aug 7th 2008, 16:38 jaredhoyt )
# Aug 7th 2008, 16:38 renan_saddam jaredhoyt: checked... will not overwrided by cake
# Aug 7th 2008, 16:37 teknoid beatzombies: by using this, you need to add a 'checked' => true/false to your $form->input (or checkbox)
# Aug 7th 2008, 16:36 _psychic_ unless the column type is a string for some reason :/
# Aug 7th 2008, 16:35 _psychic_ probably wont work as a string either
# Aug 7th 2008, 16:35 renan_saddam jaredhoyt: checking it now.. =/
# Aug 7th 2008, 16:33 beatzombies teknoid: http://bin.cakephp.org/view/1996040628 (only the first foreach is relevant right now)
# Aug 7th 2008, 16:33 jaredhoyt renan_saddam: ah i see... 'created' and 'modified' are normally saved automagically by cake... i'm not sure what happens if you specify the value yourself, but i'd imagine cake would put precedence on your value
# Aug 7th 2008, 16:33 renan_saddam jaredhoyt: what will happen with created? will cake generate other value?
# Aug 7th 2008, 16:32 teknoid beatzombies: can you paste your view again?
# Aug 7th 2008, 16:32 renan_saddam jaredhoyt: yeah, of course
# Aug 7th 2008, 16:32 renan_saddam jaredhoyt: if I do $this->Model->save(array('id' => 1, 'created' => '2008-02-02', 'key' => 'value'));
# Aug 7th 2008, 16:32 pgcd_away please please: anybody using lightbox and had a problem with the CSS in cake?
# Aug 7th 2008, 16:32 jaredhoyt are you talking about the 'created' and 'modified' columns?
# Aug 7th 2008, 16:32 teknoid beatzombies: yeah, that's fine
# Aug 7th 2008, 16:32 beatzombies teknoid: i guess its kind of like storing the state of the contribution
# Aug 7th 2008, 16:31 jaredhoyt renan_saddam: i'm not sure what that question means :D
# Aug 7th 2008, 16:31 beatzombies teknoid: does that make sense?
# Aug 7th 2008, 16:31 teknoid beatzombies: ok
# Aug 7th 2008, 16:31 renan_saddam jaredhoyt: when manipuling model data, without interference of view or controller... will cake generate another value for created field or use m definition?
# Aug 7th 2008, 16:31 beatzombies teknoid: when they have actually performed the action of contributing the item, i need to store this
# Aug 7th 2008, 16:31 beatzombies teknoid: not exactly, the relationship in the join table indicates that the contributor has pledged to contribute the item at a future date
# Aug 7th 2008, 16:30 jaredhoyt or ['url'] if you're using GET
# Aug 7th 2008, 16:30 teknoid beatzombies: isn't that the purpose of join table? ... no relation = no contribution?
# Aug 7th 2008, 16:30 jaredhoyt renan_saddam: you mean, what happens to the data for a form field create w/o formhelper? it's posted to $this->params['form']
# Aug 7th 2008, 16:30 beatzombies teknoid: prior to contributing the item, they have just pledged to contributed said item
# Aug 7th 2008, 16:30 beatzombies teknoid: it means that a contributor has actually contributed the item