# |
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 |
# |
Sep 12th 2009, 07:24 |
center_de |
hm.. it is |
# |
Sep 12th 2009, 07:23 |
ADmad |
you need "default null" for the automagic to work for save |
# |
Sep 12th 2009, 07:22 |
Ceeram |
NOT NULL |
# |
Sep 12th 2009, 07:22 |
Ceeram |
hmm updateAll doesnt? not using it now but will be needing that soon |
# |
Sep 12th 2009, 07:21 |
center_de |
how can i get rid of this.. |
# |
Sep 12th 2009, 07:21 |
center_de |
oh no.. i put NULL as standart value |
# |
Sep 12th 2009, 07:20 |
ADmad |
its doesnt |
# |
Sep 12th 2009, 07:17 |
center_de |
wouldn make much sense... |
# |
Sep 12th 2009, 07:17 |
center_de |
is it possible that updateAll does not effect "modified" field? |
# |
Sep 12th 2009, 07:12 |
ADmad |
~tell charnel about book pages controller |
# |
Sep 12th 2009, 07:09 |
charnel |
shall I create a controller for static pages ? |
# |
Sep 12th 2009, 07:08 |
ADmad |
allow the required action in pages controller b4 filter |
# |
Sep 12th 2009, 07:07 |
charnel |
how can i add a pages/home to $this->Auth->allowedActions |
# |
Sep 12th 2009, 07:06 |
Ceeram |
oops |
# |
Sep 12th 2009, 07:06 |
Ceeram |
SELECT t1.extern +1 AS Missing FROM groups AS t1 LEFT JOIN groups AS t2 ON t1.extern +1 = t2.extern WHERE t2.extern IS NULL ORDER BY t1.extern |
# |
Sep 12th 2009, 07:04 |
center_de |
ADmad, thx, worked in 1st try *lol* |
# |
Sep 12th 2009, 06:49 |
ADmad |
updateAll |
# |
Sep 12th 2009, 06:47 |
center_de |
by users |
# |
Sep 12th 2009, 06:47 |
center_de |
what is the easiest way to add value+1 in a DB field? i want to count logins |
# |
Sep 12th 2009, 06:40 |
Ceeram |
is that possible with just 1 sql query? |
# |
Sep 12th 2009, 06:39 |
Ceeram |
if i have a db field which holds a value between 1 and 999 how would i get the not used numbers ? |
# |
Sep 12th 2009, 06:37 |
Hiall |
thanks ADmad |
# |
Sep 12th 2009, 06:37 |
Hiall |
ah :P |
# |
Sep 12th 2009, 06:36 |
ADmad |
Hiall: validation functions shoudl always just return boolean |
# |
Sep 12th 2009, 06:34 |
Hiall |
If i use a conditional validation function in my model that returns an array of data is it possible to then use this within the control without having to recall the function? |
# |
Sep 12th 2009, 06:30 |
Ceeram |
jopew |
# |
Sep 12th 2009, 06:30 |
Ceeram |
looks like they are all posted by jopey so at least delete his account |