Codxplore.com

Latest news:

New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!

Yii2 custom query


Sample 1:

$model = Yii::$app->db->createCommand('select * from tbl_service_categories
where category_id  = ' . $id)->queryOne();

Sample 2:

$model = Yii::$app->db->createCommand('select * from users)->queryAll();

Tags :

Views : 808

Subscribe Us


Follow Us