Answer Posted / Shashi Kant Maral
To use find() or findAll() in Yii2, you need to call these methods on a Model instance. For example, `$model = MyModel::findOne(1)` will search for the first record with an ID of 1 using the findOne() method. findAll() returns all matching records.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers