Thursday, October 28, 2010

Re: Why only pass $data to view instead of model instance?

i tend to do those things "on demand"
using a behavior to add new keys or even doing it in the model
afterFind() etc often results in additional work without actually
needing this information
but of course this depends on the particular case


On 28 Okt., 20:10, cricket <zijn.digi...@gmail.com> wrote:
> On Thu, Oct 28, 2010 at 10:03 AM, euromark <dereurom...@googlemail.com> wrote:
> > thats not correct for PHP5 anymore
> > in PHP4 you needed to do this
> > but in PHP5 it is passed by reference by default, afaik
>
> Agreed on passing the model to the view. But this could also be
> accomplished in afterFind(), adding new key => value to the data
> array.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: