# |
Sep 22nd 2011, 18:37 |
ujjain |
http://www.codepad.eu/view/38055071 the tabs+ comments don't make things that much mroe readable. |
# |
Sep 22nd 2011, 18:37 |
scoutmstershke |
im j/p im not that stupid |
# |
Sep 22nd 2011, 18:36 |
scoutmstershke |
lol |
# |
Sep 22nd 2011, 18:36 |
ujjain |
well, It makes everybody pretty clear you are into webdevelopment. |
# |
Sep 22nd 2011, 18:35 |
scoutmstershke |
I'm thinkg about getting <?php echo 'Fart!'; ?> tattoed on my ass what you think? |
# |
Sep 22nd 2011, 18:35 |
ujjain |
thanks, sec |
# |
Sep 22nd 2011, 18:34 |
scoutmstershke |
bin it homie |
# |
Sep 22nd 2011, 18:34 |
ujjain |
scoutmstershke: well, I just wrote it :) I am not very happy about it, but it works indeed. if you feel like reviewing the function, that'd be welcome |
# |
Sep 22nd 2011, 18:32 |
scoutmstershke |
well ujjain if it ain't broke dont fix it |
# |
Sep 22nd 2011, 18:29 |
ujjain |
it works! code is poor though. |
# |
Sep 22nd 2011, 18:23 |
ujjain |
via var $uses ... User, and $this->User->find(... get id via name? |
# |
Sep 22nd 2011, 18:23 |
ujjain |
how do I convert the to_user from name to id? |
# |
Sep 22nd 2011, 18:23 |
ujjain |
hmm, I have a question. I have a form with 3 fields (to_user, subject, message). (Private messages) |
# |
Sep 22nd 2011, 18:16 |
TehTreag|AFK |
~failed-save |
# |
Sep 22nd 2011, 18:08 |
NetersLandreau |
i thought it would |
# |
Sep 22nd 2011, 18:06 |
ujjain |
save($this->data) works |
# |
Sep 22nd 2011, 18:06 |
ujjain |
NetersLandreau: thanks, it works when I try to save something |
# |
Sep 22nd 2011, 18:06 |
NetersLandreau |
scoutmstershke: he has this - if($this->Privatemessage->save) |
# |
Sep 22nd 2011, 18:05 |
scoutmstershke |
i've had problems like that then use SaveAll and it works fine |
# |
Sep 22nd 2011, 18:05 |
scoutmstershke |
try SaveAll |
# |
Sep 22nd 2011, 18:05 |
NetersLandreau |
please read the manual on saving data |
# |
Sep 22nd 2011, 18:04 |
NetersLandreau |
ujjain: you have to save some data.. Model::save is not a property! |
# |
Sep 22nd 2011, 18:04 |
ujjain |
Yeah, but why not? How to find out the error? |
# |
Sep 22nd 2011, 18:04 |
scoutmstershke |
if it returns false then it wasn't saved |
# |
Sep 22nd 2011, 18:03 |
NetersLandreau |
then i have no clue |
# |
Sep 22nd 2011, 18:03 |
ujjain |
http://www.codepad.eu/view/12328589 |
# |
Sep 22nd 2011, 18:03 |
ujjain |
NetersLandreau: false. |
# |
Sep 22nd 2011, 18:02 |
NetersLandreau |
ujjain: what does $this->Privatemessage->save() return? |
# |
Sep 22nd 2011, 18:01 |
scoutmstershke |
!seen TheWarden |
# |
Sep 22nd 2011, 18:01 |
ujjain |
NetersLandreau: is empty. |
# |
Sep 22nd 2011, 18:01 |
ujjain |
thanks |
# |
Sep 22nd 2011, 18:00 |
NetersLandreau |
$this->Privatemessage->invalidFields() |
# |
Sep 22nd 2011, 18:00 |
scoutmstershke |
if($var) |
# |
Sep 22nd 2011, 18:00 |
ujjain |
How can I find the error message for $this->Privatemessage->save? |
# |
Sep 22nd 2011, 18:00 |
scoutmstershke |
your my Cakephp bitches |
# |
Sep 22nd 2011, 18:00 |
scoutmstershke |
no im back from lunch and all of you are my bitches |
# |
Sep 22nd 2011, 17:59 |
EtRiGaN |
you became bitches again? |
# |
Sep 22nd 2011, 17:59 |
scoutmstershke |
k im back bitches |
# |
Sep 22nd 2011, 17:45 |
kidtangerine |
Ok, so i need to bind a model |
# |
Sep 22nd 2011, 17:45 |
cakenoob |
like with bindModel |
# |
Sep 22nd 2011, 17:45 |
cakenoob |
and also on the fly associations |