File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -15,30 +15,24 @@ composer require black-lamp/yii2-seo-breadcrumbs
15
15
```
16
16
or add
17
17
``` json
18
- "black-lamp/yii2-seo-breadcrumbs" : " 1.*.* "
18
+ "black-lamp/yii2-seo-breadcrumbs" : " ^1.1.0 "
19
19
```
20
20
to the require section of your composer.json.
21
21
22
22
Using
23
23
-----
24
- Example of using
25
24
26
- > layout.php
25
+ Call widget in view layout
27
26
``` php
28
27
<?= \bl\seo\SeoBreadcrumbs::widget([
29
28
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
30
29
]) ?>
31
30
```
32
-
33
- > view_file.php
31
+ in view file just add a item or items to params array
34
32
``` php
35
- <?php
36
33
$this->params['breadcrumbs'][] = 'Contacts';
37
- ?>
38
34
```
39
-
40
- or
41
-
35
+ or call the widget with configuration array in view file
42
36
``` php
43
37
<?= \bl\seo\SeoBreadcrumbs::widget([
44
38
'homeLink' => [
You can’t perform that action at this time.
0 commit comments