I am working to build a category hierarchical like this:
Home
- Car
- Yellow
- Red
- Animal
- Cat
- Node1
- Node2
- Dog
I use php & mysql schema with nested set model:
- left
- right
- id
I want to get a tree from a Animal node to result and JSON structure this:
- Animal
- Cat
- Node1
- Node2
- Dog
I dont have any solution for that. Please help me !