Re: In-depth Model Tutorials

2007-05-10 Thread Jon Bennett
On 5/10/07, Sliv <[EMAIL PROTECTED]> wrote: > > https://trac.cakephp.org/milestone/2.0.0.x > > "Change Models to return object instances instead of arrays this has come up many times whilst I've been on this list (over 12 months now I reckon!), and the usual response is that php (especially v4) h

Re: In-depth Model Tutorials

2007-05-10 Thread chrislewis
Awesome! I hadn't seen that before. On May 10, 2:52 pm, Sliv <[EMAIL PROTECTED]> wrote: > https://trac.cakephp.org/milestone/2.0.0.x > > "Change Models to return object instances instead of arrays" > > On May 10, 2:34 pm, chrislewis <[EMAIL PROTECTED]> wrote: > > > A seemingly common misconceptio

Re: In-depth Model Tutorials

2007-05-10 Thread Sliv
https://trac.cakephp.org/milestone/2.0.0.x "Change Models to return object instances instead of arrays" On May 10, 2:34 pm, chrislewis <[EMAIL PROTECTED]> wrote: > A seemingly common misconception regarding MVC is that models just > hold data. This is incorrect. To use a buzzword, models represe

Re: In-depth Model Tutorials

2007-05-10 Thread chrislewis
A seemingly common misconception regarding MVC is that models just hold data. This is incorrect. To use a buzzword, models represent 'business models' - conceptual entities that are part of a specific problem domain. So if your business/problem is a store of sorts, some business models might be th

Re: In-depth Model Tutorials

2007-05-06 Thread Walker Hamilton
Start by using these two functions: function beforeSave() { //manipulate data being saved for your model, here. //go back up to the parent beforeSave function return parent::beforeSave(); } function beforeFind($queryData) { //add conditions or or other query info

Re: In-depth Model Tutorials

2007-05-06 Thread cdomigan
A friend of mine who uses RoR extensively saw some of my controllers the other day and remarked that they looked way too bloated. A tutorial on using Models to their full potential would be awesome! Chris --~--~-~--~~~---~--~~ You received this message because yo

Re: In-depth Model Tutorials

2007-05-04 Thread jyrgen
after my controllers grew larger and larger i had the same notion of not using the framework efficiently. i tried to keep my controllers thin by making use of inheritance from app_controller. also consider using components (it's fairly easy to copy a component and overwrite it with your own method

Re: In-depth Model Tutorials

2007-05-04 Thread Tane Piper
I absolutely agree, my application goes against the "fat models, thin controllers" way of coding. I think it will be a while until we have something solid as the guys are working hard on 1.2, but if anyone has any examples, or would be willing to look at a couple of examples to improve them, post

In-depth Model Tutorials

2007-05-04 Thread Dave
I've noticed that I'm producing hacks in Cake more than actually using it to the fullest and following best practices. As an avid student, I'm at a loss, having gone through the Cake manual, watched some screencasts, and searched the web for other blogs and tutorials. As of yet, there aren't any s