I am trying to create a component which uses 3 tables in the database. I want to link the first table with the second one, then second with third.
To be more precise, consider this :
- Category: id, name
- Sub category: id, category_id, name
- Sub sub category: id, subcategory_id, name
I have created models, controllers and views for all the three tables. Just want to know how to link them together so that on the list view of Categories, I can have a link for subcategories and on clicking on that link, I can show the subcategories for the category.
I have googled this for almost 3 days now. But can't find an answer.
Any help is appreciated.