Whether to do a product filter?

Hello! You must implement the filter items by category and store. My thoughts on the matter:
Create widget with form to post it in the right view, the form would pass in a url similar to the following:
site.com/category/1?author=john%20doe&in_stock=1&min_price=10&max_price=100
In the controller check Yii::$app->request->get('filter_query') and if it is - smash GET and it generates the query, then render the result in view.
Whether correctly I understood?
Thank you.
June 8th 19 at 17:20
1 answer
June 8th 19 at 17:22
Video about filters: https://youtu.be/ymlM9UgrPLU
Video about sorting: https://youtu.be/iEra0lEFfCM

Find more questions by tags Yii