the upcoming behaviors, just gives you the hook to the acts_as_whatever. I liked the tree behavior in rails but cake has only limited support for it now.
you can now use the function findAllThreaded which returns a nested array of a self joined table using parent_id´s. but this function needs to always grab all records if you are having a structure nested more than one level deep. So if you have f.ex. categories nested 3-4 levels deep, you are definitly running into problems and have to code the traversal/iteration to get f.ex. the parent/parent or all childs of the second level yourself. I´m currently building a product catalog with a simple wishlist. the products are joined to themselfes to realize product groups/variants of a product and the categories are nested 3-4 levels deep. to make it easier to get objects from inside a tree and check where they are in a tree i´ll probably switch to a modified preorder tree. there is a darn good tutorial in php on : http://www.sitepoint.com/article/hierarchical-data-database/2 and you could also take a look at the ocean cms in the cakeforge which has adaped this. I´m going to check this out and will see if this suits my needs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
