We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot download the file excel as attachment from thw browser.
The code is ` $model = PreferenzeFoto::find()->one();
return \moonland\phpexcel\Excel::export([ 'models' => $model, 'mode' => 'export', //default value as 'export' 'columns' => ['FOTOGRAFIA_ID'], 'headers' => ['FOTOGRAFIA_ID'=>'asd'], ]);
` and the result is
How I can download the file??
The text was updated successfully, but these errors were encountered:
@ilbassa Have you solved the problem?
Sorry, something went wrong.
No, we have used another extension for download the excel.
\moonland\phpexcel\Excel::widget([ 'fileName' => 'customerData', 'asAttachment' => true, 'models' => $customers, 'mode' => 'export', //default value as 'export' 'columns' => ['customerid','name','email'], 'headers' => ['column1' => 'customerid','column2' => 'name', 'column3' => 'email'], ]);
You can pass fileName and asAttachment two additional parameter and its works fine!
No branches or pull requests
I cannot download the file excel as attachment from thw browser.
The code is
`
$model = PreferenzeFoto::find()->one();
`
and the result is
How I can download the file??
The text was updated successfully, but these errors were encountered: