Speed, simplicity, clarity. We feel that a model object in the view
will only result in misuse. We have helpers that allow you to handle
the arrays any way you need, as well as various callbacks to allow you
to format the data that comes back from the model. The benefits to
having a model object
My firm is new to CakePHP, and we're struggling with a piece of Cake
Theory. Perhaps you can help --
When you do a Find or a FindAll, why do you get back a big, nested
array? When I do Widget-FindAll() why do I not get back an array of
Widget objects? Isn't that what a model is for?
We want
Everyone is entitled to their opinion and their choice of frameworks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your reasoning, but we appreciate
the response.
Deane
On Jan 4, 10:17 am, gwoo [EMAIL PROTECTED] wrote:
Speed, simplicity, clarity. We feel that a model object in the view
will only
Your opinion is wrong.
- Nate Abele, 2007
On Jan 4, 12:11 pm, Deane [EMAIL PROTECTED] wrote:
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your reasoning, but we appreciate
the response.
Deane
On Jan 4, 10:17 am, gwoo [EMAIL
One time gwoo wrote some quick code that would make find return
objects instead of arrays. I turned it into a behavior. Seemed to work
pretty well at the time. It should still work (not sure though,
because of all the recent changes to cake core). Give it a try.
Oh, and Deane, I forgot to ask: is that the royal we or the
managerial we?
On Jan 4, 12:11 pm, Deane [EMAIL PROTECTED] wrote:
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your reasoning, but we appreciate
the response.
Deane
On
On Jan 4, 2008 4:28 PM, nate [EMAIL PROTECTED] wrote:
Oh, and Deane, I forgot to ask: is that the royal we or the
managerial we?
On Jan 4, 12:11pm, Deane [EMAIL PROTECTED] wrote:
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your
I'd also add this: while its not strictly OO behavior, I like the fact
that Model searches return pure data, and not other models/objects.
It helps reinforce the viewpoint of having the view incapable of
performing any meaningful business logic. If model returned other
models and those were
I can't wait until Christian (Jippy) does his soap opera dissection
of this thread in next weeks' CakePHP weekly summaries :)
On Jan 5, 1:05 pm, Deane [EMAIL PROTECTED] wrote:
Gwoo:
Let me retract my remarks. I was frustrated, and what I wrote was
insulting.
You have my apologies.
Deane
10 matches
Mail list logo