You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
866 B

  1. <?php
  2. use yii\helpers\Html;
  3. use iron\grid\GridView;
  4. //use yii\grid\GridView;
  5. /* @var $this yii\web\View */
  6. /* @var $searchModel common\models\CategorySearch */
  7. /* @var $dataProvider yii\data\ActiveDataProvider */
  8. $this->title = 'Categories';
  9. $this->params['breadcrumbs'][] = $this->title;
  10. ?>
  11. <div class="row">
  12. <div class="col-12">
  13. <?= GridView::widget([
  14. 'dataProvider' => $dataProvider,
  15. 'filter' => $this->render("_search", ['model' => $searchModel]),
  16. 'batch' => [
  17. [
  18. "label" => "删除",
  19. "url" => "/category/deletes"
  20. ],
  21. [
  22. "label" => "其它操作",
  23. "url" => "/category/others"
  24. ],
  25. ],
  26. 'columns' => $columns
  27. ]);
  28. ?>
  29. </div>
  30. </div>