One of the most powerful features of Yii is how it works with data. In Yii, you may easily output data directly in view files, which is a good approach
1. Configure the data provider. It may get its data from an array, an SQL command, an ActiveRecord query, etc.2. Pass the data provider to a widget, such as a list view or grid view.
That's it. After doing these simple steps you will have powerful interfaces, such as a full featured data grid that supports pagination, sorting, andfiltering, ideal for admin part of your project.