Skip to content

wisard17/yii2-data-table

Repository files navigation

DataTables Extension for Yii 2


Extension for Yii framework 2.0. to used DataTables easy.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist wisard17/yii2-data-table

or add

"wisard17/yii2-data-table": "~1.0.0"

to the require section of your composer.json file.

Usage

For example, the following is simple code:

<?= wisard17\DataTableView::widget([
    'columns' => [
        'Customer_ID',
        'action',
        'Customer_Name',
        'Office_Phone',
        'Office_Email',
    ],
    'model' => new Model(),
]) ?>