Skip to content

Commit 0c8dc9d

Browse files
author
phpNT
authored
Update view.php
1 parent 2fe4ba7 commit 0c8dc9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

views/view.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
<div class="<?= $widget->blockClass ?>" style="<?= $widget->blockStyle ?>">
2929
<?php
3030
if ($widget->xls) {
31-
echo Html::beginForm(['/export/csv'], 'post');
31+
//echo Html::beginForm(['/export/csv'], 'post');
32+
echo Html::beginForm(['/export/xls'], 'post');
3233
echo Html::hiddenInput('model', $widget->model);
3334
echo Html::hiddenInput('searchAttributes', $widget->searchAttributes);
3435
echo Html::hiddenInput('sort', $widget->sort);
@@ -79,7 +80,8 @@
7980
</div>
8081
<div class="<?= $widget->blockClass ?>" style="<?= $widget->blockStyle ?>">
8182
<?php
82-
if ($widget->html) {
83+
//if ($widget->html) {
84+
if ($widget->pdf) {
8385
echo Html::beginForm(['/export/pdf'], 'post');
8486
echo Html::hiddenInput('model', $widget->model);
8587
echo Html::hiddenInput('searchAttributes', $widget->searchAttributes);

0 commit comments

Comments
 (0)