PHP code example of djabiev / yii2-clocktimepicker
1. Go to this page and download the library: Download djabiev/yii2-clocktimepicker 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/ */
djabiev / yii2-clocktimepicker example snippets
use djabiev\widgets\BootstrapClockTimePicker;
// with ActiveForm
echo $form->field($model, 'attribute')->widget(BootstrapClockTimePicker::className() [
// extra configuration
]);
// without ActiveForm and with model.
echo BootstrapClockTimePicker::widget([
'model' => $model,
'attribute' => 'time_start',
]);