Backend\Modules\Profiles\Actions\ExportTemplate::execute PHP Méthode

execute() public méthode

Execute the action.
public execute ( )
    public function execute()
    {
        // define path
        $path = BACKEND_CACHE_PATH . '/Profiles/import_template.csv';
        // define required fields
        $fields = array('email', 'display_name', 'password');
        // define file
        $file = new \SpoonFileCSV();
        // download the file
        $file->arrayToFile($path, array(), $fields, null, ',', '"', true);
    }
ExportTemplate