Skip to content

Commit 17bda9f

Browse files
committed
view and readme
1 parent 70dbd06 commit 17bda9f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@ composer require pceuropa/yii2-sort
88
```
99

1010
##Configure
11-
11+
```
12+
<php
13+
use pceuropa\sort\SortWidget;
14+
?>
15+
16+
<?= SortWidget::widget([
17+
'image_url' => Url::to('@banners', 'http'),
18+
'table' => '',
19+
'model' => $model,
20+
]) ?>
21+
22+
```
1223
### Action code
1324
```
1425
public function actionIndex(){

views/sort.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
}; //end foreach
2929

30-
echo "<ul id='lista'>".$return."</ul>";
30+
echo "<div id='baners_scrolls'></div><ul id='lista'>".$return."</ul></div>";
3131

3232

3333
$this->registerCss("

0 commit comments

Comments
 (0)