Log message #1110313

# At Username Text
# Oct 22nd 2009, 13:41 dogmatic69 t0nic: have a look at custom validation in the book
# Oct 22nd 2009, 13:41 joeb harpoon1: Have you thought of breaking things out into smaller, "bite-size" methods?
# Oct 22nd 2009, 13:41 t0nic is there a better/built in way?
# Oct 22nd 2009, 13:41 t0nic would I just "beforeSave" count the $data->>>tags and return false?
# Oct 22nd 2009, 13:40 t0nic how can I validate HABTM data? when user makes vid it needs >=1 tag
# Oct 22nd 2009, 13:40 joeb That is a gigantic method.
# Oct 22nd 2009, 13:37 harpoon1 Question: I've created a new helper wich extends FormHelper. I'm tweaking the $form->input method to re-organize how the form input elements are displayed. My problem is when I attempt to modify the $labelText output on line 162, I the $labelText value always clears to null/empty when I use the .= or . concatenation operator... my paste bin is http://bin.cakephp.org/view/1084004667
# Oct 22nd 2009, 13:36 markstory if ($post['Post']['status'] == Post::PUBLISHED) { ... }
# Oct 22nd 2009, 13:36 dogmatic69 if ( $something ) is cool for me
# Oct 22nd 2009, 13:36 markstory I usually make those things into class constants.
# Oct 22nd 2009, 13:36 dogmatic69 thought so
# Oct 22nd 2009, 13:36 markstory I don't like floaty string bits.
# Oct 22nd 2009, 13:36 dogmatic69 lol
# Oct 22nd 2009, 13:36 markstory I wouldn't
# Oct 22nd 2009, 13:35 dogmatic69 markstory: how would you use 'n'
# Oct 22nd 2009, 13:33 markstory or 'n' if you like magic strings.
# Oct 22nd 2009, 13:33 dogmatic69 jessupx: then you just go if( $data['Model']['field'] ) { ...
# Oct 22nd 2009, 13:33 markstory is much easier than if ($thing['confirmed'] == NO) {
# Oct 22nd 2009, 13:33 markstory if ($thing['confirmed') {
# Oct 22nd 2009, 13:33 markstory how is that a problem?
# Oct 22nd 2009, 13:32 dogmatic69 then cake makes nice checkboxes for you
# Oct 22nd 2009, 13:32 jessupx then you have the problem with returning 0 as false rather then n
# Oct 22nd 2009, 13:32 dogmatic69 tinyint(1) == bool
# Oct 22nd 2009, 13:32 markstory soo is boolean.
# Oct 22nd 2009, 13:32 dogmatic69 nope.. tinyint(1)
# Oct 22nd 2009, 13:32 joeb Or, as we like to call them, boolean.
# Oct 22nd 2009, 13:32 joeb tinyint len(1) default 0 are good for Y/N
# Oct 22nd 2009, 13:31 jessupx why? they are good for Y/N
# Oct 22nd 2009, 13:31 dogmatic69 *supported
# Oct 22nd 2009, 13:31 dogmatic69 jessupx: enums are not suported
# Oct 22nd 2009, 13:31 dogmatic69 saw that on urban dictionary today II = pause longer than brb
# Oct 22nd 2009, 13:31 markstory because they are evil.
# Oct 22nd 2009, 13:31 joeb ENUMs often spawn bad practices
# Oct 22nd 2009, 13:31 markstory enum is just not supported
# Oct 22nd 2009, 13:31 markstory its not a problen
# Oct 22nd 2009, 13:30 jessupx anyone seen a problem when using the bake script that it cant deal with ENUMs?
# Oct 22nd 2009, 13:30 dogmatic69 P
# Oct 22nd 2009, 13:30 dogmatic69 you should say II
# Oct 22nd 2009, 13:30 dogmatic69 ok
# Oct 22nd 2009, 13:30 joeb Aha!
# Oct 22nd 2009, 13:30 markstory be back later.