| Subject: | Re: Fat Models vs. App Controller |
|---|---|
| From: | Sam Sherlock |
| Date: | Sun, 27 Feb 2011 02:26:00 +0000 |
|
I have just finished moving some a controller method to a model just now (if the same logic had to be used by multiple models then I would have made a helper) my app manges a list of jobs held in a db (an external system puts them in - another reason why behaviours would not work in my case; my system just monitors what the system logs) so I had a controller method checking the params of a job for validity if files exist and stuff; is such a record first in set having the model check validty meant less code overall and great ablity to reuse it so now my index view of jobs shows faily detailed overiew of the job params - with error feedback for user I baked this app in about 8 minutes and tweaked afterwards- very rapid development; near complete - S On 27 February 2011 01:30, Eric Anderson <andersoneric777@xxxxxxxxx> wrote: Awesome article. Thanks! -- 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@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: pages_controller, Krissy Masters |
|---|---|
| Next by Date: | Probelm with hasMany relationship and find/paginate, heohni |
| Previous by Thread: | Re: Fat Models vs. App Controller, Eric Anderson |
| Next by Thread: | Re: Fat Models vs. App Controller, AD7six |
| Indexes: | [Date] [Thread] [Top] [All Lists] |