Bootstrap Date Time Picker
Bootstrap Datepicker and Timepicker in one extentions, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist 3ch3r46/bootui-datetimepicker "*"
or add, (*4)
"3ch3r46/bootui-datetimepicker": "*"
to the require section of your composer.json file., (*5)
Usage
Once the extension is installed, simply use it in your code by :, (*6)
= \bootui\datetimepicker\Datepicker::widget(); ?>
= \bootui\datetimepicker\Timepicker::widget(); ?>
or, (*7)
= $form->field($model, 'attribute')->widget(Datepicker::className()); ?>
= $form->field($model, 'attribute')->widget(Timepicker::className()); ?>