php - Yii2 - form and related gridview on the same page -



php - Yii2 - form and related gridview on the same page -

can give me direction how can render gridview form page in yii2

i new yii , wondering how can accomplish this.

thanks

use yii\grid\gridview; <?php $form = activeform::begin(); ?> <?= $form->field($model, 'status')->textinput() ?> <?= gridview::widget([ 'dataprovider' => $itemdataprovider, 'columns' => [ ['class' => 'yii\grid\serialcolumn'], 'start_date', 'end_date', ['class' => 'yii\grid\checkboxcolumn'], ], ]); ?> <div class="form-group"> <?= html::submitbutton('save', ['class' => 'btn-success']) ?> </div> <?php activeform::end(); ?>

php yii2

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -