A
A
Alexander Stepanov2018-02-05 09:01:35
Yii
Alexander Stepanov, 2018-02-05 09:01:35

How to filter by multiple parameter in yii2?

How to organize a filter for displaying data by a multiple parameter?
Those. there are category, product models and how to display records from them by multiple parameter?
For example, categories are selected with checkboxes and you need to get all products with category_id = 4, 6, 9
Simply andWhere returns 0 if category id is more than one.
Maybe there are examples of such filtering?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question