Not sure if this applies but I had an existing DB that has:
id | name | parent_id

I added the two other fields (lft and rght) but how to I get these
populated with the correct values so 'generatetreelist' will work
correctly?

Thanks.


On Jul 16, 8:37 am, Kirk <k...@kirkkahn.com> wrote:
> Why are you editing the 1.2 documentation instead of 1.3? I submitted a more
> complete documentation of the reorder function a week ago after looking
> through the code, but still no one has approved it. I don't know what those
> cake people are doing over there. I used reorder to order by name field,
> which is default, and it worked fine. You just call $model->reorder(). It's
> supposed to take an id as a parameter as well, but I got an error when I
> tried to pass an id.
>
> ~Kirk
>
> On Fri, Jul 16, 2010 at 8:30 AM, DragonFlyEye <dragonflyey...@gmail.com>wrote:
>
> > Ok, for those who happen upon this thread looking for a method of
> > ordering their Tree children, I did a bit of digging into the actual
> > code and discovered that there are in fact more arguments to the
> > children() function than are documented in the Book. I've made
> > corrections to the Book which will hopefully fill in soon:
> >http://book.cakephp.org/view/228/Basic-Usage#Children-525
> > children() in fact takes several arguments (though strangely, not in
> > an $options array like you might expect from CakePHP) including an
> > $order SQL ORDER BY statement. So, whatever reorder() is supposed to
> > do, this is actually not the way to organize your tree structure for
> > display.
>
> > Hope that helps someone!! It's been a heck of a struggle for me,
> > personally.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to