FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

use kartik\grid\GridView to make TabularForm #460

Open theresiaSLV opened 2 years ago

theresiaSLV commented 2 years ago

ga3 _<?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'],

        //'detcus_id',
        'detcus_cust_id',
        'detcus_paket_id',
        'detcus_qty_paket',
        'detcus_frame_id',
        'detcus_album_id',
        'detcus_upg_id',
        'detcus_qty_upgrade',
        'detcus_dp',
        'detcus_cs',
        'detcus_harga',
        'detcus_ket',
        [
            'class' => ActionColumn::className(),
            'urlCreator' => function ($action, DetailCustomer $model, $key, $index, $column) {
                return Url::toRoute([$action, 'detcus_id' => $model->detcus_id]);
             }
        ],
    ],
]); ?>_