Skip to main content

Buttons

Example Buttons
//Cancel

<?= Html::a('Cancel', ['index'], ['class'=>'btn btn-primary']) ?>

//Delete
<?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>