I have a table Company and one of it's field is status. It may have one of two values: open or closed.
I've generated a Model using Gii.
How can i filter data in a model so that I'll see only companies with "closed" status on my r=company/index
page?
Usually i'd write a query like "SELECT * FROM company WHERE status = 'closed'"
but i don't know where to write it in Yii 2. All these MVC stuff makes me mad. Can't understand anything, really.