126
])->
from(['claim_type', 'request_claim', 'request'])->
andWhere ('claim_type.id = request_claim.id_claim_type')->
andWhere ('request.id = request_claim.id_request')->
andWhere ('request.date_reg >= :date1 and request.date_reg
< :date2')->
groupby (['claim_type.id', 'claim_type.title'])->
orderby('claim_type.title')->
params ([':date1'=>$User->report_date_1, ':date2'=>$User-
>report_date_2])
;
$dataProvider = new ActiveDataProvider([
'query' => $Q
,
]);
return $this->render('report-claim-stat', [
'dataProvider' => $dataProvider,
'ReportParams' => User::findOne(Yii::$app->user-
>identity->id),
]);
}
/**
* Finds the Request model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.