Hi,

I have a table called 'categories' with id and parent_id, linking to
itself.
In my view I want to show the full path of the current category, for
example if you are in the category called 'Apple':

Groceries > Fruit > Apple

I guess I would take the current id and work my way up the hierarchie.

How would I do that? I am still trying to find my way around Cake.
Would I do this with a new method or component?
How do I access the model in my component if that's the way to go? Or
If do it with a method, can a method call itself over and over again?

Ayone has done this before? Can you give me a few pointers?

Thanks,
Greg


--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to