$query = model::find();
$dataProvider =newActiveDataProvider([
'query'=> $query,
'pagination'=> [
'pagesize'=>'25',
]
]);
//获取当前程序执行的sql语句
$query->createCommand()->getRawSql();
$query = model::find();
$dataProvider =newActiveDataProvider([
'query'=> $query,
'pagination'=> [
'pagesize'=>'25',
]
]);
//获取当前程序执行的sql语句
$query->createCommand()->getRawSql();