# |
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 |
# |
Sep 22nd 2011, 06:58 |
dakota |
that's for 1.3 |
# |
Sep 22nd 2011, 06:57 |
dakota |
eldamar: http://book.cakephp.org/view/944/Vendor-examples |
# |
Sep 22nd 2011, 06:57 |
Section58 |
eldamar: 2.0 ? |
# |
Sep 22nd 2011, 06:57 |
dakota |
eldamar: App::import |
# |
Sep 22nd 2011, 06:57 |
dakota |
eldamar: Same way you import them anywhere else |
# |
Sep 22nd 2011, 06:57 |
Section58 |
and it should produce you a fluffy cakesession controller |
# |
Sep 22nd 2011, 06:57 |
eldamar |
Hey, how can i import vendor classes in a model? need to use ByteArray class from AMFPHP inside afterFind for my model =/ |
# |
Sep 22nd 2011, 06:57 |
dakota |
diverdude: rchavik has a point. You can't name the model CakeSession, since there already is a CakeSession class in the cake core |
# |
Sep 22nd 2011, 06:57 |
Section58 |
then asnwer all the questions |
# |
Sep 22nd 2011, 06:56 |
Section58 |
diverdude: do it again from the menu start with bake, then work down the tree till you get cakesession |
# |
Sep 22nd 2011, 06:56 |
dakota |
rchavik: sup. I believe you are correct |
# |
Sep 22nd 2011, 06:56 |
rchavik |
diverdude, i don't think you're suppose t he name the baked class CakeSession |
# |
Sep 22nd 2011, 06:56 |
dakota |
it wouldn't have a file name if it didn't exist |
# |
Sep 22nd 2011, 06:56 |
dakota |
diverdude: the error messages says otherwise :/ |
# |
Sep 22nd 2011, 06:56 |
diverdude |
so it must be generating a garbage controller somehow |
# |
Sep 22nd 2011, 06:55 |
diverdude |
Section58, there is no controller i am generating it with bake |
# |
Sep 22nd 2011, 06:55 |
Section58 |
i am interested to see what bake did to break it |
# |
Sep 22nd 2011, 06:55 |
diverdude |
yes but i dont understand why this error occurs |
# |
Sep 22nd 2011, 06:55 |
Section58 |
*show us |
# |
Sep 22nd 2011, 06:55 |
Section58 |
shows cake sessions controller |
# |
Sep 22nd 2011, 06:55 |
dakota |
diverdude: kinda gives away the error |
# |
Sep 22nd 2011, 06:55 |
diverdude |
parse error |
# |
Sep 22nd 2011, 06:55 |
diverdude |
dakota, yes |
# |
Sep 22nd 2011, 06:54 |
dakota |
diverdude: line 44 of your paste |
# |
Sep 22nd 2011, 06:54 |
dakota |
lol |
# |
Sep 22nd 2011, 06:54 |
Section58 |
talking of php5 ... the html5 templates are quite sexual |
# |
Sep 22nd 2011, 06:54 |
dakota |
which creates proper fat models and thin controllers, and uses exceptions |
# |
Sep 22nd 2011, 06:53 |
dakota |
When I do use bake, I use the CakeDC php5 template |
# |
Sep 22nd 2011, 06:53 |
diverdude |
it throws this error: http://pastebin.com/XfE6kT3J |
# |
Sep 22nd 2011, 06:53 |
dakota |
Section58: you are correct (iirc) |
# |
Sep 22nd 2011, 06:53 |
Section58 |
i am not an expert on bake tho, i tend not to use it |