Ya, I was just summing up your explanation =) 2009/6/15 Marcelo Andrade <[email protected]>
> > > 2009/6/14 Marcelo Andrade <[email protected]> > >> > >> On Sun, Jun 14, 2009 at 5:46 PM, centr0<[email protected]> wrote: > >> > (..) > >> > the view breaks after this, now i know its simply fixed my question is > >> > is it normal that the array structure changes when calling find('all) > >> > vs. find('first')? > >> > >> Sure it is. In this case, there will be: > >> > >> $x= $this->Model->find('all'); > >> $y= $this->Model->find('first'); > >> > >> $x[0] == $y > > On Mon, Jun 15, 2009 at 11:24 AM, Carlos Gonzalez > Lavin<[email protected]> wrote: > > Since you are telling cake to only get you the first result with > > find('first'), it doesnt feel the need to add number to the resulting row > as > > it would to the rows that a find('all') returns > > I know. You're right. > > It was not a really working/usefull code, but just > an illustration to better explain the overall idea > to centr0. > > Best regards. > > -- > MARCELO DE F. ANDRADE > Belem, PA, Amazonia, Brazil > Linux User #221105 > > http://mfandrade.wordpress.com > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
