Even if `afterFind()` is used, I'd still be doing 1 more loop than I
should need to.
But thanks for the tip, it's all very useful.

On Sep 23, 4:55 pm, teknoid <[EMAIL PROTECTED]> wrote:
> To address your specific example, such functionality should be handled
> in models' afterFind(), where you can modify the returned data.
> Also, take a look at the Set class in cake's API for some powerful
> array manipulation tools.
>
> And as far as the array structure, it also depends on how deep your
> binding is... once you get familiar with the way returned arrays are
> structured, it really doesn't matter one way or another.
>
> On Sep 23, 6:07 pm, Brenton B <[EMAIL PROTECTED]> wrote:
>
> > Heh, I figured there was some intricacies that I'd forgotten about ...
> > it's been a long time since I touched PHP4.
>
> > On Sep 23, 4:02 pm, John David Anderson <[EMAIL PROTECTED]>
> > wrote:
>
> > > On Sep 23, 2008, at 3:52 PM, Brenton B wrote:
>
> > > > Hmmm ... never thought of backwards compatibility to PHP4 as a reason.
> > > > I figured since PHP5 has been out for over 4 years (first beta was
> > > > over 5 yrs ago) worrying about PHP4's support would've waned ... like,
> > > > completely dropped off.
> > > > So I'm guessing there must be some super fanciness in the Cake libs
> > > > because PHP4 does support Classes and Objects, and I'm pretty sure
> > > > PHP4 would still support the use cases previously described.
>
> > > How sure? ;)
>
> > > For one, see what happens when you try get_class() on an object of
> > > type ClassNamesComeBackLowerCase in PHP4.x and you'll see (part) of
> > > the problem. You can see how caseless classnames might screw up things
> > > in a CakePHP setup.
>
> > > > Don't get me wrong, I'm still liking Cake, was just something I was
> > > > thinking of while coding today.
>
> > > I promise you're not the first to bring it up.
>
> > > -- John
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to