Thank you very much. You are a savior. Thats exactly what I was
looking for.
I think it is a very useful feature and should also be part of the
treeBehavior.

I already created a loop that counts the depth but getting it from the
database sure is faster.

On Jun 17, 8:53 am, AD7six <[email protected]> wrote:
> On Jun 16, 10:06 pm, Madis <[email protected]> wrote:
>
> > Hello!
> > I was wondering if there is a possibility to save the level of each
> > node into the database? And how would this be done?
> > I used Doctrine with symfony and they had this automized. But with
> > cake it seems not to be a feature.
>
> > I know that it is also possible to count the levels in a loop but that
> > means very ugly code.
> > Any help appriciated.
>
> > Madis
>
> Try 
> that:http://trac.assembla.com/mi/browser/branches/base/models/abstract/tre...
>
> hth,
>
> AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to