kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
556 stars 303 forks source link

Getting 404 on export to file #936

Closed dkornilove closed 4 years ago

dkornilove commented 4 years ago

Im using yii >= 2.0.4. Today I have installed this amazing widget but the core export feature is not working for me. Here is my simple config:

<?= GridView::widget([
  'dataProvider' => $dataProvider,
  'autoXlFormat' => true,
  'toggleDataContainer' => ['class' => 'btn-group mr-2'],
  'export' => [
    'showConfirmAlert' => false,
    'target' => GridView::TARGET_BLANK
  ],
  'columns' => $gridColumns,
  'pjax' => true,
  'panel'=>[
    'type'=>'primary',
    'heading'=>'headins'
]
]);
?>

Grid works perfectly. But when I click any export option (csv, excel, hmtl..) on my admin.mysite.com/grid page it redirects me to admin.mysite.com/gridview/export/download/ with 404 message and whithout download starting. Can you help me to figure out what kind of problem it can be?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.