# |
Sep 23rd 2011, 03:29 |
fenix` |
logout |
# |
Sep 23rd 2011, 03:29 |
fenix` |
session->read('x') <- returns $value |
# |
Sep 23rd 2011, 03:28 |
fenix` |
session->write('x', $value) |
# |
Sep 23rd 2011, 03:28 |
daaaan |
$this->Session->read() is the same before and after the logout()? |
# |
Sep 23rd 2011, 03:26 |
fenix` |
even after logging out and logging back in as another user i can access the last users session data. |
# |
Sep 23rd 2011, 03:25 |
fenix` |
http://bin.cakephp.org/view/1459039525 |
# |
Sep 23rd 2011, 03:24 |
fenix` |
~bin |
# |
Sep 23rd 2011, 03:15 |
cpgo |
whatever |
# |
Sep 23rd 2011, 03:15 |
cpgo |
read me |
# |
Sep 23rd 2011, 03:15 |
cpgo |
you heard me |
# |
Sep 23rd 2011, 03:15 |
Seguer |
what what |
# |
Sep 23rd 2011, 03:14 |
cpgo |
git damn you Seguer |
# |
Sep 23rd 2011, 01:52 |
Seguer |
damnit git |
# |
Sep 23rd 2011, 01:26 |
diverdude |
it happens when i change something |
# |
Sep 23rd 2011, 01:26 |
diverdude |
D |
# |
Sep 23rd 2011, 01:26 |
diverdude |
it was a glitch in the matrix |
# |
Sep 23rd 2011, 01:25 |
Section58 |
) |
# |
Sep 23rd 2011, 01:25 |
diverdude |
Section58, nvm, i figured it out :) |
# |
Sep 23rd 2011, 01:25 |
Section58 |
diverdude: bake ... i am not a bake user |
# |
Sep 23rd 2011, 00:58 |
diverdude |
hmm, when i try and run cake bake view all i get: Error: Database table alcoholhabits for model Alcoholhabit was not found. But i have a table called alcholhabits. What could be wrong? |
# |
Sep 23rd 2011, 00:41 |
Seguer |
ddoom_: extract then merge |
# |
Sep 23rd 2011, 00:39 |
ddoom_ |
I can just specify the id which I have |
# |
Sep 23rd 2011, 00:39 |
ddoom_ |
so I don't have to have loops trying to find the correct data in the array |
# |
Sep 23rd 2011, 00:38 |
Seguer |
ddoom_: why? |
# |
Sep 23rd 2011, 00:38 |
Seguer |
diverdude: ok that makes a bit more sense |
# |
Sep 23rd 2011, 00:37 |
ddoom_ |
If I have an array retrieved from a find, is there a way using Set:: to have the key of the array be the id of the model? e.g. array(12 => array('Model' => ..., 35 => array('Model' =>...) |
# |
Sep 23rd 2011, 00:36 |
diverdude |
Seguer, most of them being link tables |
# |
Sep 23rd 2011, 00:35 |
diverdude |
Seguer, ok..its tables |
# |
Sep 23rd 2011, 00:35 |
Seguer |
because a model might need a table but a table doesnt always need a model |
# |
Sep 23rd 2011, 00:34 |
Seguer |
when you say 79 models do you mean models or tables? |
# |
Sep 23rd 2011, 00:34 |
diverdude |
that quickly becomes a lot of tables |
# |
Sep 23rd 2011, 00:34 |
diverdude |
yep |
# |
Sep 23rd 2011, 00:33 |
Seguer |
3 tables |
# |
Sep 23rd 2011, 00:33 |
Seguer |
that's just how habtm works though |
# |
Sep 23rd 2011, 00:32 |
diverdude |
well its not a problem |
# |
Sep 23rd 2011, 00:31 |
diverdude |
table count explodes |
# |
Sep 23rd 2011, 00:31 |
diverdude |
the problem is if there are lots of many2many relationships |
# |
Sep 23rd 2011, 00:30 |
Seguer |
for model in `cat models.txt`; do cake bake "$model"; done |
# |
Sep 23rd 2011, 00:30 |
diverdude |
its just a pitty the cake bake script is so buggy :( |
# |
Sep 23rd 2011, 00:29 |
Seguer |
what the hell sort of application has that many models seriously :o |
# |
Sep 23rd 2011, 00:29 |
diverdude |
79 is not a lot...400 is a lot |