Codxplore.com

Latest news:

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

Yii2 where query


Sample 1:

Category::find()->where(['category_id' => "1", 'parent_id' => "0"])->one();

Sample 2:

Products::find()->asArray()->where('price between ' . $min . ' and ' . $max . ' ')->all();

Sample 3:

Users::find()->where('email=' . $email)->all();

Tags :

Views : 831

Subscribe Us


Follow Us