Tag Archives: YII CSQLDATAPROVIDER

Yii SQL Query To CGridview

CSqlDataProvider implements a data provider based on a plain SQL statement. This tutorial will help you to display the custom sql query result into cgridview as normal crud view. But dont forget to remove the semicolon in custom sql statement Because it will create error on count query. Controller.php <?php ……….. public function actionPending(){ $sql=”SELECT […]