Advertisement
Guest User

Index

a guest
Mar 24th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1. <?php
  2.  
  3. use yii\helpers\Html;
  4. use yii\grid\GridView;
  5.  
  6. /* @var $this yii\web\View */
  7. /* @var $dataProvider yii\data\ActiveDataProvider */
  8.  
  9. $this->title = 'Usuarios';
  10. $this->params['breadcrumbs'][] = $this->title;
  11. ?>
  12. <div class="usuario-index">
  13.  
  14.     <h1><?= Html::encode($this->title) ?></h1>
  15.  
  16.     <p>
  17.         <?= Html::a('Create Usuario', ['create'], ['class' => 'btn btn-success']) ?>
  18.     </p>
  19.  
  20.  
  21.     <?= GridView::widget([
  22.         'dataProvider' => $dataProvider,
  23.         'columns' => [
  24.             ['class' => 'yii\grid\SerialColumn'],
  25.  
  26.             'id_usuario',
  27.             'username:ntext',
  28.             'password:ntext',
  29.             'data_criacao',
  30.             'data_alteracao',
  31.             //'fk_nivel',
  32.             //'fk_ativo',
  33.  
  34.             ['class' => 'yii\grid\ActionColumn'],
  35.         ],
  36.     ]); ?>
  37.  
  38.  
  39. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement