Re: Is bake DRY?
On Jan 28, 12:45 pm, Greg Skerman <gsker...@gmail.com> wrote:
> i don't do my own bake templates..mainly because i can't be bothered/have
> never bothered to try
>
> The default bake templates place all the find/save logic into the
> controller, where I prefer to have get/set/find stuff in the model....
maybe I just don't remember what the default bake templates look like
- but they don't contain anything that I recall is relevant to put in
a model.
care to give a specific example?
For reference, that's an example of one of my baked controllers
https://github.com/AD7six/skel/blob/master/controllers/users_controller.php
AD
PS. bake templates are delete-key friendly
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home