commit | author | age
|
2207d6
|
1 |
<?= $generator->title ?> |
W |
2 |
|
|
3 |
<?= str_repeat('=', mb_strlen($generator->title, \Yii::$app->charset)) ?> |
|
4 |
|
|
5 |
<?= $generator->description ?> |
|
6 |
|
|
7 |
|
|
8 |
Installation |
|
9 |
------------ |
|
10 |
|
|
11 |
The preferred way to install this extension is through [composer](http://getcomposer.org/download/). |
|
12 |
|
|
13 |
Either run |
|
14 |
|
|
15 |
``` |
|
16 |
php composer.phar require --prefer-dist <?= $generator->vendorName ?>/<?= $generator->packageName ?> "*" |
|
17 |
``` |
|
18 |
|
|
19 |
or add |
|
20 |
|
|
21 |
``` |
|
22 |
"<?= $generator->vendorName ?>/<?= $generator->packageName ?>": "*" |
|
23 |
``` |
|
24 |
|
|
25 |
to the require section of your `composer.json` file. |
|
26 |
|
|
27 |
|
|
28 |
Usage |
|
29 |
----- |
|
30 |
|
|
31 |
Once the extension is installed, simply use it in your code by : |
|
32 |
|
|
33 |
```php |
|
34 |
<?= "<?= \\{$generator->namespace}AutoloadExample::widget(); ?>" ?> |
|
35 |
``` |