K
K
Konstantin Spirin2021-07-06 11:31:33
Yii
Konstantin Spirin, 2021-07-06 11:31:33

How to change default directory in GridView widget?

How to change the default directory in the GridView widget, that is, not the one that was originally set to go to the directory in which it is located, but another one. That is, there is an additional widget in the mater directory, you need it to go to edit data not in mater a ssilkiid :
mater /view.php

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

            
            'naim',
          

            ['class' => 'yii\grid\ActionColumn','template' => '{update}{delete}'],
       
        ],
    ]); ?>


60e4147cc9d0c958025250.png
That is, an additional GridView in which the transition for editing takes place in another directory.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question