Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if(Yii::$app->user->can('updatePost', ['author_id' => $model->user_id])):?>
- <p>
- <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
- <?= Html::a('Delete', ['delete', 'id' => $model->id], [
- 'class' => 'btn btn-danger',
- 'data' => [
- 'confirm' => 'Are you sure you want to delete this item?',
- 'method' => 'post',
- ],
- ]) ?>
- </p>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment