Closed zmoddynamics closed 2 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.
You seem to be having your specific use case where you want to call GRIDVIEW from another module.
The GridView module offers a specific property called downloadAction
which you can configure for your SPECIAL nested-module use case (check the documentation of GridView Module Setup).
The downloadAction
defaults to gridview/export/download
if not set. You can change it to the correct route like <OTHER_MODULE>/gridview/export/download
or similar. You need to configure your gridview module in your app or module configuration as mentioned.
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module'
'downloadAction' => 'gridview/export/download',
'i18n' => []
]
]
For a submodule you can change the above configuration to be nested within a parent module.
Prerequisites
master
branch of yii2-grid.Steps to reproduce the issue
I would be interested in your thoughts? Perhaps there is an alternative way or enhancement one could make to this extension to prevent this in the future? Anyway, I hope this can help someone in the future.
Expected behavior and actual behavior
When I follow those steps, I see... 404 Not found error unless I add the route as described.
I was expecting... export to download my grid to the correct format
Environment
Browsers
Operating System
Libraries
Isolating the problem