Log message #1110334

# At Username Text
# Oct 22nd 2009, 13:45 joeb dogmatic69: Yeah?
# Oct 22nd 2009, 13:45 t0nic didn't see anything addressing my situation but I'll tias!
# Oct 22nd 2009, 13:45 dogmatic69 ACTION wants to see the benchmark for a good cake site
# Oct 22nd 2009, 13:45 t0nic nm i'll try the write your own function thing
# Oct 22nd 2009, 13:45 harpoon1 hang on...
# Oct 22nd 2009, 13:45 Phally dogmatic69: no :p
# Oct 22nd 2009, 13:44 t0nic well it's a short section
# Oct 22nd 2009, 13:44 dogmatic69 t0nic: that was fast
# Oct 22nd 2009, 13:44 joeb harpoon1: And it's becoming a null value?
# Oct 22nd 2009, 13:44 t0nic dogmatic69: hmm that didn't really help :(
# Oct 22nd 2009, 13:44 harpoon1 joeb: tried that
# Oct 22nd 2009, 13:44 joeb harpoon1: Try setting the variable at the very top to something like "test" and see if it's just not being touched?
# Oct 22nd 2009, 13:44 dogmatic69 Phally: can i see :)
# Oct 22nd 2009, 13:43 Phally dogmatic69: yes
# Oct 22nd 2009, 13:43 dogmatic69 Phally: you got any sites floating around the net done in cake?
# Oct 22nd 2009, 13:43 harpoon1 joeb: I'm not saying the core does not work... I"m not trying to fix the core, but overide it's function...
# Oct 22nd 2009, 13:42 dogmatic69 np
# Oct 22nd 2009, 13:42 t0nic dogmatic69: thank you
# Oct 22nd 2009, 13:42 joeb harpoon1: Yes, but what they did, works. You say you're having problems.
# Oct 22nd 2009, 13:41 harpoon1 joeb: Why? It's just copy/past of core helper...
# Oct 22nd 2009, 13:41 dogmatic69 joeb: i think that is from the core helper
# 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?