well… another problem I have with a new extension XD, this time is the excelview which I follow the steps to export and it takes me to a page where it gives me an error “This site can’t be reached”
This is my controller, well part of it
public function actionExport() {
$searchModel = new VehiculosSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
ExcelView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'fullExportType'=> 'xlsx', //can change to html,xls,csv and so on
'grid_mode' => 'export',
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id_socio',
'nro_unidad',
'placa',
'id_tipo',
'operativa',
'disponible',
'app_descar',
'app_sincro',
'fecha_registro',
'id_usuario',
],
]);
}
}
and this is the button what i use to call the funtion in my controller
<?= Html::a("Exportar a Exel", ['vehiculos/export'], ['class' => 'btn btn-default']) ?>
I understand that this is all I need to export my columns as part of an excel document.
I am following this tutorial : Step by step for how to full export Yii2 grid to excel | Wiki | Yii PHP Framework