L
L
LucasP2017-08-29 22:08:19
Yii
LucasP, 2017-08-29 22:08:19

Yii2 product filters?

How can I implement product filters? To make it look like in online stores - on the left is a sidebar with filters, the rest of the page is products. Should I use GridView|ListView or something else?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-08-30
@webinar

You can use GridView|ListView, you can write your own widget, you can just use html in the view file. Your question is apparently from the category of "how to make up", and this is a question that does not relate to yii.

L
LucasP, 2017-09-08
@LucasP

So, continuation =) I suppose to place the view with filters (_search.php) in layout, how to pass $searchModel to layout?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question