admin wrote:
In V2.0
Model -> prepareQuery()
All you need is in this function.
It contains the SQL for reading or enumerating the datas.
Almost all important SQL is there.
To my opinion, play with the states vars of the model.
Set up a state in the view. And read the state to change the behavior of the query.
Simple as that.
I was trying and playing around, but I cant figure out how this should work.
I need ordering for filters (order by ordering) and items in collection view (order by a.date)
Can anyone write me an example?