Suppose you have Products,Categories and each product belongs in many categories
Suppose you have Products,Categories and each product belongs in many categories
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.
Suppose you have an Application in Yii that manages hotels each one has many customers.
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.
class Post extends CActiveRecord {
...
}
`
When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.