# |
Sep 22nd 2011, 09:06 |
Section58 |
i was trolling myself |
# |
Sep 22nd 2011, 09:00 |
diverdude |
just didnt understand his following comment :) |
# |
Sep 22nd 2011, 09:00 |
diverdude |
yeah |
# |
Sep 22nd 2011, 09:00 |
rchavik |
diverdude, Section58> an action would look like index() instead of admin_index() |
# |
Sep 22nd 2011, 08:59 |
diverdude |
? |
# |
Sep 22nd 2011, 08:59 |
Section58 |
ACTION can't belieave he wrote that out |
# |
Sep 22nd 2011, 08:59 |
Section58 |
an action would look like index() instead of admin_index() |
# |
Sep 22nd 2011, 08:58 |
Section58 |
public is no prefix |
# |
Sep 22nd 2011, 08:57 |
diverdude |
*prefix |
# |
Sep 22nd 2011, 08:56 |
diverdude |
so public = no prefic or public prefix? |
# |
Sep 22nd 2011, 08:56 |
diverdude |
guessing crud for public :) |
# |
Sep 22nd 2011, 08:56 |
rchavik |
admin -> creates the crud actions for admin prefix, public -> well, can you guess ? |
# |
Sep 22nd 2011, 08:55 |
diverdude |
rchavik, so what does the public admin in "cake bake controller users public admin " do? making admin functionality or? |
# |
Sep 22nd 2011, 08:54 |
diverdude |
rchavik, ahh yeah ok...might be a better idea |
# |
Sep 22nd 2011, 08:54 |
rchavik |
nah.. use git or scm |
# |
Sep 22nd 2011, 08:53 |
diverdude |
rchavik, i was also just thinking as a "safety belt". To prevent myself from accidently baking new models and overwrite code that i have written |
# |
Sep 22nd 2011, 08:53 |
rchavik |
what is your use case? |
# |
Sep 22nd 2011, 08:52 |
rchavik |
the only time i needed to extend is when i needed to customize the User model.. |
# |
Sep 22nd 2011, 08:51 |
diverdude |
hmm ok..why is that? |
# |
Sep 22nd 2011, 08:51 |
rchavik |
not impossible, unnecessary |
# |
Sep 22nd 2011, 08:51 |
diverdude |
why does the fact that you use plugins make it impossible for you to extend models? |
# |
Sep 22nd 2011, 08:50 |
rchavik |
i use plugins, so no. but i extended User model |
# |
Sep 22nd 2011, 08:50 |
diverdude |
"thought about making a script for that" |
# |
Sep 22nd 2011, 08:49 |
diverdude |
rchavik, i thought about doing that also...but to make a script that extended all baked models automatically |
# |
Sep 22nd 2011, 08:49 |
diverdude |
rchavik, hey, you extend your baked models? |
# |
Sep 22nd 2011, 08:48 |
rchavik |
ACTION reread the above again :) |
# |
Sep 22nd 2011, 08:48 |
diverdude |
rchavik, I have lots and lots actually |
# |
Sep 22nd 2011, 08:48 |
rchavik |
have you done only one model, or multiple models ? |
# |
Sep 22nd 2011, 08:48 |
diverdude |
ahh yeah ok... |
# |
Sep 22nd 2011, 08:48 |
rchavik |
that one does 1 model |
# |
Sep 22nd 2011, 08:47 |
diverdude |
cake bake model User all i usually just do cake bake model all |
# |
Sep 22nd 2011, 08:46 |
diverdude |
rchavik, what is this? |
# |
Sep 22nd 2011, 08:43 |
rchavik |
diverdude, commands in pasted bin should not require you to answer anything |
# |
Sep 22nd 2011, 08:43 |
rchavik |
dogmatic69, true.. but i bake once.. and then extend.. |
# |
Sep 22nd 2011, 08:42 |
rchavik |
diverdude, http://bin.cakephp.org/view/477384154 |
# |
Sep 22nd 2011, 08:41 |
dogmatic69 |
rchavik: but scaffold does not require a rebake with changes |
# |
Sep 22nd 2011, 08:41 |
diverdude |
dogmatic69, yes it is :) |
# |
Sep 22nd 2011, 08:41 |
dogmatic69 |
diverdude: bake does the basics for you, scaffolding is magic |
# |
Sep 22nd 2011, 08:40 |
dakota |
rchavik: yeah, but it isn't as quick as using dynamic scaffolding (btw, I don't use scaffolding ever :) ) |
# |
Sep 22nd 2011, 08:40 |
rchavik |
~bin |
# |
Sep 22nd 2011, 08:40 |
rchavik |
dakota, bake does it for me too. |