Hi guys I have problem with passing data from forms to a controller without model… Or with model, but just DynamicModel
This is from controller where I’m using dynamicmodel
public function actionGenerate()
    {
        $dmodel = new DynamicModel([
            'dcount', 'dtime', 'dcaption'
        ]);
        if ($dmodel->load(Yii::$app->request->post()))
        {
            var_dump(Yii::$app->request->post());
            die();
            return $this->render(['index']);
        }
        else
        {
            return $this->renderAjax('show_feeds', [
                'dmodel' => $dmodel,
            ]);
        }
    }
I put there vur_damp but I never gonna get there and I don’t understand why
this is my _form.php
 <?php $form = ActiveForm::begin([
            'method' => 'post',
        ]); ?>
        <?= $form->field($dmodel, 'dcount',['options' => ['class' => 'col-md-2']])->textInput()->label('3 or 1'); ?>
        <?= $form->field($dmodel, 'dtime',['options' => ['class' => 'col-md-2']])->textInput()->label('Repeate in sec'); ?>
        <?= $form->field($dmodel, 'dcaption',['options' => ['class' => 'col-md-2']])->textInput()->label('Name of link');?>
    </div>
    <div class="form-group">
        <?= Html::button('Generate', [
                'value'=>Url::to(['generate']),
                'class'=>'btn btn-primary grid-button modalButton'
        ]); ?>
        <?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
    </div>
        <?php ActiveForm::end(); ?>