Answer the question
In order to leave comments, you need to log in
How to sort by 3 table Yii 1.1?
There are 3 tables, how can I sort according to data from 3 tables.
1table( id, name, etc) 2table(category) 3table(category, id, sorting)
Each category has its own sorting.
Answer the question
In order to leave comments, you need to log in
Your question can be answered - How is it possible.
on the topic, no links are described, or anything. And we left the prefix for reading thoughts at home
The question is like porridge. If you understand correctly, it should help you
new CDbcriteria([
'order' => 'relation_table.sort_field'
])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question