In Yii2 how to display all records except one?
Hi all. In Yii2 how to display all records except one, which id I know?
All entries deduce this:
Blog::find()->all();
One like this:
Blog::findOne($id));
1 answer
Blog::find()->where(['not','id',$id])->all();
Find more questions by tags Yii