Hello,
I'm using codeigniter 3.1.10. Here I have few category names stored in the MySQL database and displaying on a webpage.
So the link I want is "domain/category/category_name"
Here "/category/" is defined in the route and I have converted "category_name" as "Slug" and called in the URL.
when I click the category name on the webpage the URL is "domain/category/category_name(slug)" which is perfect but the products which are related to that category is not showing on the webpage.
How should I pass category id to get the related products of that category from the database and show on webpage? what concept should I apply here ?