Content of the «Displaying Data» section:
Articles section «Displaying Data»:
Theming is a way to replace a set of views with another without the need of touching the original view rendering code. You can use theming to systematically change the look and feel of an Yii 2 application. yii\base\Theme
Yii provides a set of widgets that can be used to display data. ListView and GridView widgets can be used to display a list or table of data records providing features like pagination, sorting and filtering.
A yii data provider is a class implementing [[yii\data\DataProviderInterface]]. It mainly supports retrieving paginated and sorted data. Data provider classes are included in the Yii releases. Data Provider Interface.
Yii uses a [[yii\data\Pagination]] object to represent the information about a pagination scheme. With a fully specified [[yii\data\Pagination]] object, you can retrieve and display data partially.
Data Formatting in Yii 2. To display data in a more readable format for users, you may format them using the formatter application component. By default the formatter is implemented by [[yii\i18n\Formatter]] which provides a set of methods to format data as date/time, numbers, currencies, and other commonly used formats.