Yii DataView Latte
Yii DataView Latte is a Latte Extension that integrates the Yii3 DataView package with the View Latte view renderer, simplifying the use of DataView widgets in Latte templates.
The extension adds Latte tags for DataView widgets (DetailView, GridView, and ListView), DataField, columns (ActionColumn, CheckboxColumn, DataColumn, RadioColumn, SerialColumn), and ActionButton.
Supported DataView Items
The following DataView widgets are supported:
For DetailView, the following Fields are supported:
For GridView, the following Column types are supported:
For ActionColumn, the following Button types are supported:
Installation
Install the extension using Composer:
Either:
composer require beastbytes/yii-dataview-latte
or add the following to the require
section of your composer.json
"beastbytes/beastbytes/yii-dataview-latte": "{version constraint}"
IDE Support
IntelliJ IDEA
Install the Latte Support plugin.
To register the extension's tags with the plugin, either copy the latte.xml file in the root directory of this package to the .idea directory of your project or merge with an existing latte.xml.
.