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/tree_model.php#L50

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