Commit 1a5087ca by Larry Ullman

Very trivial edits

Still feels like an incomplete, possibly unnecessary, fragment
parent 36e3b0a7
...@@ -2,12 +2,12 @@ Data Sources and Widgets ...@@ -2,12 +2,12 @@ Data Sources and Widgets
======================== ========================
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 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
for the website's frontend. But when it comes to backend data components and widgets, Yii's ability to access data is a real timesaver. for the Web site's frontend. But when it comes to backend data components and widgets, Yii's ability to access data is a real timesaver.
Typically, you would take the following steps when working with one of these data components: Typically, you would take the following steps when working with one of these data components:
1. Configure the data provider. It may take its data from an array, an SQL command, an AR query, etc. 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 one of the widgets, such as a list view or grid view. 2. Pass the data provider to a widget, such as a list view or grid view.
3. Customize the widget to reflect the presentational style that you are after. 3. Customize the widget to reflect the presentational style that you are after.
That's it. After doing these simple steps you will have powerful interfaces, such as a full featured data grid that supports pagination, sorting, and That's it. After doing these simple steps you will have powerful interfaces, such as a full featured data grid that supports pagination, sorting, and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment