# |
Sep 12th 2009, 09:41 |
savant |
that should only output the ones that are messing up |
# |
Sep 12th 2009, 09:41 |
Dimatter |
http://pastie.org/614640 |
# |
Sep 12th 2009, 09:41 |
savant |
just place one at the end of line 15 and one at the end of line 16 :) |
# |
Sep 12th 2009, 09:41 |
savant |
where did you add the debug statements? |
# |
Sep 12th 2009, 09:40 |
savant |
those are two different arrays completely |
# |
Sep 12th 2009, 09:40 |
Dimatter |
i see it being added but ... |
# |
Sep 12th 2009, 09:40 |
Dimatter |
http://pastie.org/614639 |
# |
Sep 12th 2009, 09:38 |
Dimatter |
okay |
# |
Sep 12th 2009, 09:38 |
savant |
humor me |
# |
Sep 12th 2009, 09:38 |
Dimatter |
and it's the same before |
# |
Sep 12th 2009, 09:38 |
Dimatter |
that's after |
# |
Sep 12th 2009, 09:38 |
Dimatter |
http://pastie.org/614635 |
# |
Sep 12th 2009, 09:38 |
savant |
and then bin the resulting arrays |
# |
Sep 12th 2009, 09:38 |
savant |
Dimatter: can you do debug($category) before AND after that statement? |
# |
Sep 12th 2009, 09:37 |
Dimatter |
why can't i add a new value to the array at line 16 http://pastie.org/614623 ??? |
# |
Sep 12th 2009, 09:37 |
Dimatter |
i did |
# |
Sep 12th 2009, 09:36 |
savant |
Dimatter: if you have a question, it'd be best to ask it :) |
# |
Sep 12th 2009, 09:34 |
savant |
lots of people |
# |
Sep 12th 2009, 09:32 |
Dimatter |
anyone alive ? |
# |
Sep 12th 2009, 09:29 |
Dimatter |
why can't i add a new value to the array at line 16 http://pastie.org/614623 ??? |
# |
Sep 12th 2009, 08:06 |
ADmad |
you should read the manual more often |
# |
Sep 12th 2009, 08:06 |
ADmad |
~tell charnel about book auth user |
# |
Sep 12th 2009, 08:05 |
ADmad |
there's no need to do that in the first place... the info is already there is session, so just use session helper in view/layout |
# |
Sep 12th 2009, 08:04 |
charnel |
ADmad : http://bin.cakephp.org/view/1759520629 here is the before filter of AppController |
# |
Sep 12th 2009, 08:03 |
ADmad |
same way you do for a view |
# |
Sep 12th 2009, 08:02 |
charnel |
how can I set a variable for the default.ctp? |
# |
Sep 12th 2009, 08:01 |
ADmad |
the latter |
# |
Sep 12th 2009, 07:59 |
charnel |
is it impossible or am I doing something wrong |
# |
Sep 12th 2009, 07:58 |
charnel |
I am setting a variable in app_controller.php but cannot access it in my page layout default.ctp |
# |
Sep 12th 2009, 07:35 |
Ceeram |
i was told updateAll isnt used that often, but i couldnt live without it, am i doing something wrong |
# |
Sep 12th 2009, 07:33 |
Ceeram |
i'll keep it in mind when i get to it |
# |
Sep 12th 2009, 07:33 |
Ceeram |
but it would be possible the ofcourse to set modified in fields array and set it manually |
# |
Sep 12th 2009, 07:27 |
Ceeram |
or are there heavy arguments against it? |
# |
Sep 12th 2009, 07:27 |
Ceeram |
will put modified with updateAll on my personal roadmap then :) |
# |
Sep 12th 2009, 07:26 |
center_de |
was confused |
# |
Sep 12th 2009, 07:26 |
center_de |
then everything is fine |
# |
Sep 12th 2009, 07:26 |
center_de |
sorry, got that wrong |
# |
Sep 12th 2009, 07:26 |
ADmad |
already told you updateAll doesnt update value for 'modified' |
# |
Sep 12th 2009, 07:25 |
center_de |
but on updateall nothing changes |
# |
Sep 12th 2009, 07:25 |
ADmad |
so whats the problem ? 'modified' shouldnt be NULL in the first place... cake would have set proper value for it when creating/updating record with "save" |
# |
Sep 12th 2009, 07:25 |
center_de |
btw: creates works... it also puts the date into modified during creation |