Tutorial by Examples

If we want to display a jquery calendar for end user who can pick maximum date as current date in the calendar. The below code will useful to this scenario. <?php use yii\jui\DatePicker; use yii\widgets\ActiveForm; ?> <?php $form = ActiveForm::begin(['id' => 'profile-form']); ?&gt...
For some forms you want display the days from future/past days and other days need to disabled, then this scenario will help. <?php use yii\jui\DatePicker; use yii\widgets\ActiveForm; ?> <?php $form = ActiveForm::begin(['id' => 'profile-form']); ?> ..... <?php $day = '+...
If you want to have calendar for from date and to date and also to date calendar days always will be greater than from date field, then below scenario will help. <?php $form = ActiveForm::begin(['id' => 'profile-form']); ?> ..... <?= $form->field($model, 'from_date')->widget(D...

Page 1 of 1