PHP code example of andrew72ru / yii2-bootstrap-datepicker-mobile
1. Go to this page and download the library: Download andrew72ru/yii2-bootstrap-datepicker-mobile library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andrew72ru / yii2-bootstrap-datepicker-mobile example snippets
<?= $form->field($model, 'date')->widget(\andrew72ru\datepicker\DatePicker::className(), [
'options' => [], // Html tag options
'pluginOptions' => [
'date-start-view' => 'day',
'date-format' => 'dd.mm.yy',
'date' => \Yii::$app->formatter->asDate(time(), 'MM/dd/yy'),
],
]);
php composer.phar