XF 2.2 How to get all parent of child

fahad ashraf

Well-known member
i am using xenforo's AbstractCategoryTree there is a function to get all child is there any way to get parent of a child ??
 
i am using xenforo's AbstractCategoryTree there is a function to get all child is there any way to get parent of a child ??
For the front end I used (I believe this, or similar, as it is off the top of my head): array_keys($node->breadcrumbs);

I believe the node finder has a isDecendantOf, which returns the immediate parent (again, off the top of my head, as I need to leave in a minute).
 
Last edited:
Top Bottom