# |
Sep 22nd 2011, 07:03 |
Section58 |
no |
# |
Sep 22nd 2011, 07:03 |
diverdude |
Section58, so if i generate cake_sessions manually first it will be skipped when i do all afterwards? |
# |
Sep 22nd 2011, 07:02 |
Section58 |
as they are not special like cake_sessions |
# |
Sep 22nd 2011, 07:02 |
Section58 |
may or maynot handle the 'all' pram |
# |
Sep 22nd 2011, 07:02 |
Section58 |
the other tables |
# |
Sep 22nd 2011, 07:02 |
Section58 |
and you can make the x at that point |
# |
Sep 22nd 2011, 07:02 |
diverdude |
thats a huge task for 63 tables |
# |
Sep 22nd 2011, 07:02 |
Section58 |
pick the cake_session model (it should list it) |
# |
Sep 22nd 2011, 07:02 |
diverdude |
Section58, that means one by one |
# |
Sep 22nd 2011, 07:02 |
Section58 |
and use the options |
# |
Sep 22nd 2011, 07:02 |
Section58 |
start with 'cake bake' |
# |
Sep 22nd 2011, 07:02 |
dakota |
diverdude: remove the cake_sessions table temporarily then |
# |
Sep 22nd 2011, 07:01 |
diverdude |
Section58, what kind of bits? |
# |
Sep 22nd 2011, 07:01 |
Section58 |
do it in bits |
# |
Sep 22nd 2011, 07:01 |
diverdude |
i need to do this automatically |
# |
Sep 22nd 2011, 07:01 |
Section58 |
diverdude: don't do it 'all' |
# |
Sep 22nd 2011, 07:01 |
diverdude |
i have 63 tables |
# |
Sep 22nd 2011, 07:01 |
Section58 |
'why does it make a controller'[C |
# |
Sep 22nd 2011, 07:01 |
dakota |
diverdude: don't use bake |
# |
Sep 22nd 2011, 07:01 |
Section58 |
lol |
# |
Sep 22nd 2011, 07:01 |
diverdude |
sorry, cake bake controller all |
# |
Sep 22nd 2011, 07:01 |
Section58 |
cause your making it bake it all |
# |
Sep 22nd 2011, 07:00 |
diverdude |
dakota, i dont but it generates one automatically when i run cake bake all controller |
# |
Sep 22nd 2011, 07:00 |
Section58 |
yeah tbh the core should have a invult one for sessions |
# |
Sep 22nd 2011, 07:00 |
dakota |
diverdude: you can't have any classes that use the same name as other classes. |
# |
Sep 22nd 2011, 07:00 |
dakota |
diverdude: you need to create a table called cake_sessions. Why do you need a controller/model though? |
# |
Sep 22nd 2011, 06:59 |
diverdude |
dakota, ok? hmmm but i thought i had to create a table named that for using cake sessions |
# |
Sep 22nd 2011, 06:59 |
dakota |
diverdude: you're gonna need to name it something other than CakeSession |
# |
Sep 22nd 2011, 06:59 |
dakota |
ACTION smells coffee |
# |
Sep 22nd 2011, 06:59 |
Section58 |
delete it and start again |
# |
Sep 22nd 2011, 06:59 |
Section58 |
yeah its made the file all mangled |
# |
Sep 22nd 2011, 06:59 |
dakota |
diverdude: you can't do that, since there already is a class in CakePHP called CakeSession. |
# |
Sep 22nd 2011, 06:58 |
dakota |
diverdude: the problem is that you are naming your model CakeSession |
# |
Sep 22nd 2011, 06:58 |
eldamar |
to early in the morning |
# |
Sep 22nd 2011, 06:58 |
diverdude |
with some garabage inside |
# |
Sep 22nd 2011, 06:58 |
dakota |
2.0* |
# |
Sep 22nd 2011, 06:58 |
eldamar |
Ah, that works. i had a syntax error but it was my mistake xD |
# |
Sep 22nd 2011, 06:58 |
dakota |
ACTION really needs to start using 2.09 |
# |
Sep 22nd 2011, 06:58 |
Section58 |
App::uses for 2.0 |
# |
Sep 22nd 2011, 06:58 |
diverdude |
http://pastebin.com/4E0aM8Hz |
# |
Sep 22nd 2011, 06:58 |
diverdude |
yes ok...it generates me this controller |