Yes, I have the eBook of this that I bought from Apress. I believe it is
for cake 1.3 ?
Although well worthy of a read, I felt there was a lot of wheel
re-invention going on. For example, they implement their own tree
handling code for categories when there is already a perfectly
satisfactory TreeBehavior class in Cake and they did not really explain
why they felt the need to do this. They also concentrate a lot on the
use of elements.
To talk about the original question, the way cake works IMHO is to
distribute logic between all three of Behavior, Component and Helper
classes with behaviors extending models, Components extending
controllers and Helpers extending views. The best analogy I can think of
for these is the C++ multiple inheritance concept where functions are
added to the classes to give them more methods. For example a model with
both Tree and Containable behaviours is both of those things in addition
to being a model.
To have a concept, say for example you wanted an edit box that plugged
into junit's autocompletion, you may well write a plugin that contained
all three of behaviours, components and helpers to achieve what you want.
Good examples of this can be found in the CakeDC github repository and I
think this is a good a repository as any to see good Cake coding practises.
https://github.com/CakeDC
Hope this is of some help,
Steve (Ratty)
On 06/06/12 03:28, bs28723 wrote:
anyone familiar with this book?
<http://www.amazon.com/Practical-CakePHP-Projects-Experts-Development/dp/143021578X/ref=sr_1_5?s=books&ie=UTF8&qid=1338949396&sr=1-5>
Practical CakePHP Projects (Expert's Voice in Web Development)
by Richard Miller, John Omokore and Kai Chan (Dec 4, 2008)
or other books that provide good examples of the
Fat Model, Skinny controller Concept?
On Sunday, June 3, 2012 9:04:26 AM UTC-4, ibejohn818 wrote:
Fat model, skinny controller.
Separation of presentation and data
A couple Core concepts in building a mote maintainable app.
However nothing is ever 100 perfect for all situations, learn from
writing your own shitty code and do not get caught in the spiral
of over engineering. Keep it simple and clever.
On Jun 2, 2012 11:18 AM, "bs28723" wrote:
I am probably looking for something that does not exist
online, but only
in a few folks heads. :-) But maybe some parts of this
exists. You
never know unless you ask......
I am quickly learning a lot about MVC architecture and CakePHP
over the
last couple months. The cookbook, lots of trial and error, and
this
group are helping me learn - so thanks! But, I am finding
myself using
simple examples to learn or implement something. Then as it
scales,
realize that I should have done this with a helper, behavior or
component. And now, I have to go back and redesign this, to
do it
correctly. Great that I am learning, but this is delaying my
project. Sigh.
So, I am looking for more advanced examples, tutorials, or best
practices to "hopefully" allow me to skip over some of the basic
learning curve and get right to an architecture that will
support a
medium to large site with lots of capabilities.
Am I asking for too much? :-)
Any suggestions on where to get this advanced information or
education I
am looking for?
Thanks,
bill
------------------------------------------------------------------------
View this message in context: Looking for MVC & CakePHP Best
practice doc, examples for Med to large sites
<http://cakephp.1045679.n5.nabble.com/Looking-for-MVC-CakePHP-Best-practice-doc-examples-for-Med-to-large-sites-tp5708484.html>
Sent from the CakePHP mailing list archive
<http://cakephp.1045679.n5.nabble.com/> at Nabble.com.
--
--
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
[email protected] For more options, visit this
group at http://groups.google.com/group/cake-php
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php