PHP code example of hadi-aj / yii2-pwt-datepicker

1. Go to this page and download the library: Download hadi-aj/yii2-pwt-datepicker 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/ */

    

hadi-aj / yii2-pwt-datepicker example snippets


use hadiaj\pwtdatepicker\PwtDatepicker;

// Normal select with ActiveForm & model
echo $form->field($model, 'date')->widget(PwtDatepicker::classname(), [
    'pluginOptions' => [
        'initialValue' => TRUE,
        ...
    ],
]);

// PwtDatepicker without model
echo PwtDatepicker::widget([
    'pluginOptions' => [
        'initialValue' => TRUE,
        ...
    ],
]);

php composer.phar