Guest User

Untitled

a guest
Jan 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php if(Yii::$app->user->can('updatePost', ['author_id' => $model->user_id])):?>
  2.  
  3. <p>
  4. <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  5. <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  6. 'class' => 'btn btn-danger',
  7. 'data' => [
  8. 'confirm' => 'Are you sure you want to delete this item?',
  9. 'method' => 'post',
  10. ],
  11. ]) ?>
  12. </p>
  13. <?php endif; ?>
Add Comment
Please, Sign In to add comment