diff --git a/.gitignore b/.gitignore index 9a67475..c3ee397 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,13 @@ +# phpstorm project files +.idea + +# netbeans project files +nbproject + +# zend studio for eclipse project files +.buildpath +.project +.settings # windows thumbnail cache Thumbs.db diff --git a/README.md b/README.md index 48314ec..9ce7647 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The preferred way to install this extension is through [composer](http://getcomp Either run ``` -composer require --prefer-dist mrserg161/yii2-airdatepicker "*" +composer require --prefer-dist mrerg161/yii2-airdatepicker "*" ``` or add @@ -21,6 +21,10 @@ or add to the require section of your `composer.json` file. +Demo +----- + +You can refer detailed documentation and demos for [AirDatePicker](http://t1m0n.name/air-datepicker/docs/) or russian docs [AirDatePicker RU](http://t1m0n.name/air-datepicker/docs/index-ru.html) widgets on usage of the extension. Usage ----- @@ -28,13 +32,18 @@ Usage Once the extension is installed, simply use it in your code by : ```php -field($model, '_date') + + + +field($model, 'date') ->widget( DatePicker::class, [ 'clientOptions' => [ 'autoClose' => true, 'timepicker' => true, ] - ]) ?> +]) ?> ``` \ No newline at end of file