# |
Oct 22nd 2009, 14:42 |
jessica-m |
i dont see it there either |
# |
Oct 22nd 2009, 14:42 |
jessica-m |
ok i checked api |
# |
Oct 22nd 2009, 14:42 |
tantalum |
I have a form with a couple of fiel fields but when I submit it the array with the file info is in two different formatas pasted at (http://bin.cakephp.org/view/1112765251), why is this happening? |
# |
Oct 22nd 2009, 14:41 |
joeb |
I heard that *all the time* in high school, too. |
# |
Oct 22nd 2009, 14:41 |
dogmatic69 |
all the *cool* kids use the api |
# |
Oct 22nd 2009, 14:41 |
dogmatic69 |
api > book |
# |
Oct 22nd 2009, 14:41 |
jessica-m |
not api |
# |
Oct 22nd 2009, 14:41 |
jessica-m |
i checked book |
# |
Oct 22nd 2009, 14:40 |
dogmatic69 |
jessica-m: did you check the api ? |
# |
Oct 22nd 2009, 14:39 |
hendlerman |
ADmad: thanks! I'll keep making changes until it's ready. :) |
# |
Oct 22nd 2009, 14:39 |
jessica-m |
how do i tell if an action is called via request action? |
# |
Oct 22nd 2009, 14:37 |
ADmad |
hendlerman: k.. will put it on my todo list :) |
# |
Oct 22nd 2009, 14:35 |
dogmatic69 |
t0nic: debug( $this->data ); and work it out |
# |
Oct 22nd 2009, 14:35 |
hendlerman |
I've gotten 4 other reviews of the article - made significant changes. Would be grateful for another look. |
# |
Oct 22nd 2009, 14:35 |
hendlerman |
ADmad: thanks |
# |
Oct 22nd 2009, 14:35 |
t0nic |
dogmatic 69 and I just specify "Tag" or 'tag' as the field? |
# |
Oct 22nd 2009, 14:34 |
dogmatic69 |
then validate => 'rule' => 'checkMultipul' |
# |
Oct 22nd 2009, 14:34 |
t0nic |
dogmatic69: thanks will try |
# |
Oct 22nd 2009, 14:34 |
ADmad |
hendlerman: yes in here |
# |
Oct 22nd 2009, 14:34 |
dogmatic69 |
or if you dont get that function checkMultipul( $data ){ return count( $this->data['SomeRelatedModel'] ) >= 1; } |
# |
Oct 22nd 2009, 14:34 |
PPKuma |
* :D |
# |
Oct 22nd 2009, 14:34 |
PPKuma |
joeb: oh thanks :S |
# |
Oct 22nd 2009, 14:34 |
ADmad |
hendlerman: hi.. |
# |
Oct 22nd 2009, 14:33 |
joeb |
PPKuma: You need to call $this->log() but I would be careful overridding the log method |
# |
Oct 22nd 2009, 14:33 |
dogmatic69 |
function checkMultipul( $data ){ return count( $this->data['SomeModel'] ) >= 1; } |
# |
Oct 22nd 2009, 14:33 |
t0nic |
nowhere do I see where to put in a rule for associated models |
# |
Oct 22nd 2009, 14:33 |
t0nic |
yes what about it |
# |
Oct 22nd 2009, 14:33 |
dogmatic69 |
t0nic: custom validation |
# |
Oct 22nd 2009, 14:32 |
t0nic |
dogmatic69 because rule=>'multiple' is (i think) definitely not what I need |
# |
Oct 22nd 2009, 14:32 |
alan|macbook |
thanks dogmatic69 |
# |
Oct 22nd 2009, 14:31 |
PPKuma |
hi, im getting a weird parameter error when calling an application function, can you guys check it out? http://pastie.org/665651 |
# |
Oct 22nd 2009, 14:31 |
t0nic |
see note |
# |
Oct 22nd 2009, 14:31 |
t0nic |
dogmatic69: http://bin.cakephp.org/view/1941089728 |
# |
Oct 22nd 2009, 14:30 |
FMC |
dogmatic69: was very simple, setting foreignKey to false, thank you |
# |
Oct 22nd 2009, 14:30 |
dogmatic69 |
http://bin.cakephp.org/view/1566099424 |
# |
Oct 22nd 2009, 14:30 |
dogmatic69 |
!bin |
# |
Oct 22nd 2009, 14:30 |
alan|macbook |
thanks a lot dogmatic69 |
# |
Oct 22nd 2009, 14:29 |
dogmatic69 |
alan|macbook: hold on |
# |
Oct 22nd 2009, 14:28 |
alan|macbook |
dogmatic69: could you please have a look at your page using the tree helper and tell me how you used the generate() function ? |
# |
Oct 22nd 2009, 14:28 |
dogmatic69 |
t0nic: put it in the message part |
# |
Oct 22nd 2009, 14:27 |
FMC |
dogmatic69: I will thanks |