Skip to content
New issue

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

How to setup export file path in export method? #46

Open
hassanuos opened this issue Sep 14, 2021 · 0 comments
Open

How to setup export file path in export method? #46

hassanuos opened this issue Sep 14, 2021 · 0 comments

Comments

@hassanuos
Copy link

hassanuos commented Sep 14, 2021

I try to fine attribute to export file to a specific location on the server but I could not. Is there any attribute available? below is my sample source code. I am trying to create an excel sheet using the console command.

`public function actionCreateList(){

    \moonland\phpexcel\Excel::export([
        'models' => Property::find()->all(),
        'setFirstRecordAsKeys' => true,
        'columns' => [
            [
                'header' => 'Title',
                'format' => 'text',
                'wraptext' => true,
                'value' => function($model) {
                    return $model->title;
                },
            ],
        ]
    ]);
}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant