Answer the question
In order to leave comments, you need to log in
Is it realistic to send Pjax without a button?
What is the point. I place 2 date inputs on the page to return orders for the period of time I have chosen.
Rewrote the form in Yii realities
<?= Html::beginForm(['default/stat'], 'post', ['data-pjax' => '', 'class' => 'row']); ?>
<div class="col-lg-6">
<?=Html::label('C', 'date') ?>
<?= Html::input('date', 'string', Yii::$app->request->post('string'), ['class' => 'form-control']) ?>
</div>
<div class="col-lg-6">
<?=Html::label('По', 'date') ?>
<?= Html::input('date', 'string', Yii::$app->request->post('string'), ['class' => 'form-control']) ?>
</div>
<?= Html::endForm() ?>
$ordersdate = Orders::find()
->where(['between', 'date', "par1", "par2" ])->all();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question