# |
Sep 22nd 2011, 10:59 |
rchavik |
bin |
# |
Sep 22nd 2011, 10:58 |
DidItAgain |
dudes, Im trying to update my record and cake saves another record even if I have the "id" field set. What am I doing wrong? |
# |
Sep 22nd 2011, 10:58 |
fenix` |
yeah i suspected it was a general OO thing. |
# |
Sep 22nd 2011, 10:58 |
dakota |
fenix`: that has nothing to do with cakephp and everything to do with php. So yes |
# |
Sep 22nd 2011, 10:57 |
fenix` |
does cakephp2 still require parent::beforeFilter if you override? |
# |
Sep 22nd 2011, 10:57 |
DidItAgain |
which gets set only if im trying to update |
# |
Sep 22nd 2011, 10:57 |
DidItAgain |
Ive set the "id" field to the correct value |
# |
Sep 22nd 2011, 10:57 |
DidItAgain |
guys, when I set my data, and try to update, it saves instead... what am i doing wrong? |
# |
Sep 22nd 2011, 10:56 |
rchavik |
no |
# |
Sep 22nd 2011, 10:56 |
fenix` |
do i have to first do var $paginate =array();? |
# |
Sep 22nd 2011, 10:55 |
rchavik |
$this->paginate['conditions'] = array('userid' => .....); |
# |
Sep 22nd 2011, 10:54 |
rchavik |
you need to do that in the method itself.. can't do in declaration |
# |
Sep 22nd 2011, 10:54 |
fenix` |
thier* |
# |
Sep 22nd 2011, 10:54 |
fenix` |
trying to ensure users only see theyre own character records |
# |
Sep 22nd 2011, 10:53 |
fenix` |
http://bin.cakephp.org/view/868501440 |
# |
Sep 22nd 2011, 10:52 |
maennchen |
Section58: if i debug the mail and don't send it, there is also no attachement |
# |
Sep 22nd 2011, 10:52 |
rchavik |
~tell fenix` about bin |
# |
Sep 22nd 2011, 10:52 |
fenix` |
kk |
# |
Sep 22nd 2011, 10:52 |
dakota |
fenix`: yeah. bin your code |
# |
Sep 22nd 2011, 10:52 |
fenix` |
cakebin? |
# |
Sep 22nd 2011, 10:52 |
dakota |
~tell fenix`about bin |
# |
Sep 22nd 2011, 10:51 |
fenix` |
im trying to set $paginate to a conditions array containing a ref to $this->Auth->user in cakephp2, and getting unexpected T_VARIABLE |
# |
Sep 22nd 2011, 10:50 |
diverdude |
dakota, ah ok... |
# |
Sep 22nd 2011, 10:50 |
dakota |
diverdude: yup |
# |
Sep 22nd 2011, 10:50 |
diverdude |
dakota, latest HEAD is the link i posted? |
# |
Sep 22nd 2011, 10:49 |
dakota |
at this stage, using the latest HEAD would probably be the most stable |
# |
Sep 22nd 2011, 10:49 |
rchavik |
rc is release candicate.. |
# |
Sep 22nd 2011, 10:49 |
dakota |
diverdude: ? |
# |
Sep 22nd 2011, 10:49 |
diverdude |
dakota, should be better than 2.0? |
# |
Sep 22nd 2011, 10:49 |
dakota |
diverdude: https://github.com/cakephp/cakephp/tree/2.0.0-RC2 is rc2 |
# |
Sep 22nd 2011, 10:49 |
dakota |
diverdude: no. That's the latest repository |
# |
Sep 22nd 2011, 10:48 |
dakota |
ujjain: http://en.wikipedia.org/wiki/Post/Redirect/Get |
# |
Sep 22nd 2011, 10:48 |
diverdude |
is this RC2 ? https://github.com/cakephp/cakephp/tree/2.0 |
# |
Sep 22nd 2011, 10:48 |
rchavik |
ujjain, prg + pagination works, trying doing pagination with filter plugin |
# |
Sep 22nd 2011, 10:48 |
ujjain |
Post, Redirect, Get? |
# |
Sep 22nd 2011, 10:48 |
ujjain |
dakota: What is prg? |
# |
Sep 22nd 2011, 10:48 |
ujjain |
Section58: hmm, weird, I tried minimizing the window in Ubuntu via shortcut, appereantly I closed irc terminal and retyped what I typed :p |
# |
Sep 22nd 2011, 10:48 |
fenix` |
is this the right channel for troubleshooting help? |
# |
Sep 22nd 2011, 10:47 |
Section58 |
thanks i didn't quite get that the first time |
# |
Sep 22nd 2011, 10:47 |
dakota |
ujjain: it's prg features alone makes it worth while imo |
# |
Sep 22nd 2011, 10:47 |
ujjain |
Section58: I will check the docs and files again. |