How generate tree list  by Tree behaviour ?
There are left, right and prent_id key.

each time to get childrens do:
$item->children($parent_id)
is too many sql queries.

PS. Others implementation i see  use  left, right and level fields.
They define change "level" column for this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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