Commit cb2daf34 by Paul Klimov

Merge pull request #2746 from AlexGx/doc-small-fix

fix sql query
parents 174158a6 b04b51bd
......@@ -98,7 +98,7 @@ $count = Yii::$app->db->createCommand('
', [':status' => 1])->queryScalar();
$dataProvider = new SqlDataProvider([
'sql' => 'SELECTFROM tbl_user WHERE status=:status',
'sql' => 'SELECT * FROM tbl_user WHERE status=:status',
'params' => [':status' => 1],
'totalCount' => $count,
'sort' => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment