# |
Sep 22nd 2011, 18:41 |
ujjain |
scoutmstershke: ok, thanks, will put it under the if(!empty) |
# |
Sep 22nd 2011, 18:41 |
scoutmstershke |
$loadmodel will only be called as the function is used |
# |
Sep 22nd 2011, 18:40 |
scoutmstershke |
$uses is called everytime the controller is accessed |
# |
Sep 22nd 2011, 18:40 |
ujjain |
$privatemessage['User']['username'] |
# |
Sep 22nd 2011, 18:40 |
scoutmstershke |
then why not use $this->loadmodel('model');? |
# |
Sep 22nd 2011, 18:40 |
ujjain |
but I do use $privatemessage['User'] in the view |
# |
Sep 22nd 2011, 18:40 |
ujjain |
in this controller. |
# |
Sep 22nd 2011, 18:40 |
ujjain |
I am only using $this->User once, if that's the question. |
# |
Sep 22nd 2011, 18:39 |
scoutmstershke |
is it a table you are using once? |
# |
Sep 22nd 2011, 18:39 |
ujjain |
scoutmstershke: I wonder if I should use var $uses, I wonder if the function send() is bad with the ->User->find. |
# |
Sep 22nd 2011, 18:38 |
Zion2014 |
and ideas? |
# |
Sep 22nd 2011, 18:38 |
ujjain |
scoutmstershke: http://pastie.org/2575238 might look a bit better. |
# |
Sep 22nd 2011, 18:38 |
Zion2014 |
Hey guys, I"m using the Html->link helper method and it has some the ® charcter and it won't render |
# |
Sep 22nd 2011, 18:38 |
scoutmstershke |
I dont like tattos anyway |
# |
Sep 22nd 2011, 18:38 |
ujjain |
hehe good, it's a bad idea to have such a tattoo |
# |
Sep 22nd 2011, 18:37 |
draginx |
whats wrong with this code and why isnt it actually logging me in? |
# |
Sep 22nd 2011, 18:37 |
draginx |
http://pastie.org/private/mfm6dwdsetlu7bhmlvukg |
# |
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 |