view.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model app\models\MenuToTheUser */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => 'Menu To The Users', 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="menu-to-the-user-view">
  11. <p>
  12. <?= Html::a('Create', ['create'], ['class' => 'btn btn-success']) ?>
  13. <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
  14. <?= Html::a('Delete', ['delete', 'id' => $model->id], [
  15. 'class' => 'btn btn-danger',
  16. 'data' => [
  17. 'confirm' => 'Are you sure you want to delete this item?',
  18. 'method' => 'post',
  19. ],
  20. ]) ?>
  21. <?= Html::a('Main', ['index'], ['class' => 'btn btn-warning']) ?>
  22. </p>
  23. <?= DetailView::widget([
  24. 'model' => $model,
  25. 'attributes' => [
  26. 'id',
  27. 'menu_name',
  28. ],
  29. ]) ?>
  30. </div>