Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 9d709ef

Browse files
author
Antonio Ramirez
authored
Merge pull request #39 from naffiq/patch-2
Updated php code blocks syntax highlight
2 parents cfa4c0f + 225381a commit 9d709ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ The preferred way to install this extension is through [composer](http://getcomp
1717

1818
Either run
1919

20-
```
21-
composer require 2amigos/yii2-date-picker-widget:~1.0
20+
```bash
21+
$ composer require 2amigos/yii2-date-picker-widget:~1.0
2222
```
2323
or add
2424

@@ -42,7 +42,7 @@ This widget renders a Bootstrap DatePicker input control. Best suitable for mode
4242
***Example of use with a form***
4343
There are two ways of using it, with an `ActiveForm` instance or as a widget setting up its `model` and `attribute`.
4444

45-
```
45+
```php
4646
<?php
4747
use dosamigos\datepicker\DatePicker;
4848

@@ -76,7 +76,7 @@ use dosamigos\datepicker\DatePicker;
7676
```
7777
***Example of use without a model***
7878

79-
```
79+
```php
8080
<?php
8181
use dosamigos\datepicker\DatePicker;
8282
?>
@@ -97,7 +97,7 @@ This widget renders a Bootstrap DateRangePicker Input control.
9797
***Example of use with a form***
9898
The following example works with a model that has two attributes named `date_from` and `date_to`.
9999

100-
```
100+
```php
101101
<?php
102102
use dosamigos\datepicker\DateRangePicker;
103103
?>
@@ -114,7 +114,7 @@ use dosamigos\datepicker\DateRangePicker;
114114
```
115115
***Example of use without a model***
116116

117-
```
117+
```php
118118
<?php
119119
use dosamigos\datepicker\DateRangePicker;
120120
?>

0 commit comments

Comments
 (0)