Thursday, December 30, 2010

<b>Scaffolding</b> vs Bake

Hi,
I used scaffolding.. it was quite easy and fast. But I learned that
Bake is a better way...
Any comment why there is scaffold in the first place since it would be
replaced with Bake later on when developing a programme?
Regards,
Maxim
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=e
Scaffold was implemented before bake was added to the core so it has stayed.
There are cases when you might add a new table to your database, it is
easier to create the controller/model combination while you are creating all
of the fields in your new table and see how it is working instead of going
to the command line every change you make.
Hope that helps,

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=e
Scaffold was implemented before bake was added to the core so it has stayed.There are cases when you might add a new table to your database, it is easier to create the controller/model combination while you are creating all of the fields in your new table and see how it is working instead of going to the command line every change you make.
Hope that helps,I used scaffolding.. it was quite easy and fast. But I learned that
Bake is a better way...
Any comment why there is scaffold in the first place since it would be
replaced with Bake later on when developing a programme?
Regards,
Maxim
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

I would not use scaffolding in production, it was never intended for that
purpose. It has nothing to do with security or being unstable.
The only purpose for scaffolding is to prototype and develop your
models/database.
Bake is used to get you closer to a production code base. You can customize
your bake templates and even use them if you like.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=e
I would not use scaffolding in production, it was never intended for that purpose. It has nothing to do with security or being unstable.The only purpose for scaffolding is to prototype and develop your models/database.
Bake is used to get you closer to a production code base. You can customize your bake templates and even use them if you like.If the scaffolding is OK for you (work for all your requirements) I guess you can continue using it. I've read in some place that scaffolding is not recommended to use in production application (I don't remember the reason is unstable or insecure...) but I don't know in the latest cake version.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

I find scaffold is useful when mucking about with the data model...
once i'm happy with that i go back and bake out the basic CRUD and go from
there.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=e
Hi everyone,
Thanks I'm learning Bake at the moment. I thought scaffolding can be
used for production. Anyway thanks for clarifying.
Regards,
Maxim
> I would not use scaffolding in production, it was never intended for that
> purpose. It has nothing to do with security or being unstable.
>
> The only purpose for scaffolding is to prototype and develop your
> models/database.
>
> Bake is used to get you closer to a production code base. You can customize
> your bake templates and even use them if you like.
>
> > >http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Larry pointed this out earlier

scaffolding is use for rough prototyping and is not for actual use; in
architectural terms you use the scaffolding erect the initial structure your
still deciding upon the final structure of the database. Perhaps early
alpha stages of you app - never goes live for public to interact with.
whereas baking is for when you have pretty much finalised your db and do not
need to remodel. This is beta phaze of you app, closer to final but tweaks
need to be made still.
whilst scaffolding dealing with views would be a burden.
- S

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=e
Larry pointed this out earlier


View the original article here


Synergy Aluminium Scaffolding Tower

No comments:

Post a Comment