Skip to content

Commit a4ce438

Browse files
committed
Updated readme [skip ci]
1 parent 285eb32 commit a4ce438

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,24 @@ composer require black-lamp/yii2-seo-breadcrumbs
1515
```
1616
or add
1717
```json
18-
"black-lamp/yii2-seo-breadcrumbs": "1.*.*"
18+
"black-lamp/yii2-seo-breadcrumbs": "^1.1.0"
1919
```
2020
to the require section of your composer.json.
2121

2222
Using
2323
-----
24-
Example of using
2524

26-
> layout.php
25+
Call widget in view layout
2726
```php
2827
<?= \bl\seo\SeoBreadcrumbs::widget([
2928
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
3029
]) ?>
3130
```
32-
33-
> view_file.php
31+
in view file just add a item or items to params array
3432
```php
35-
<?php
3633
$this->params['breadcrumbs'][] = 'Contacts';
37-
?>
3834
```
39-
40-
or
41-
35+
or call the widget with configuration array in view file
4236
```php
4337
<?= \bl\seo\SeoBreadcrumbs::widget([
4438
'homeLink' => [

0 commit comments

Comments
 (0)