Grids, lists and data providers are good addition to Yii core. These were originally a part of zii, official extension library that was later merged with the framework itself.
Typically, you would take the following steps when working with components such as grids, lists and data providers.
- Supply data (in the form of “ar model”, “arrays” or “sql result set”) to a data provider (such as
CActiveDataProvider
,CArrayDataProvider
andCSqlDataProvider
) . - Use a widget component (such as
CListView
orCGridView
) and configure it to display the data. - Customize the widget to reflect the presentational style that you are after.
In this guide all these topics will be covered in detail.
data-provider-intro
data-providers
list-intro
list-xxx
grid-intro
grid-columns
grid-filtering