| 1 | <?php |
||
| 9 | trait ControllerTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Returns an error messages as an array indexed by the ID. |
||
| 13 | * This is a helper method that simplifies the way of writing AJAX validation code. |
||
| 14 | * |
||
| 15 | * @param yii\base\Model|yii\base\Model[] $model |
||
| 16 | * @return yii\web\Response |
||
| 17 | */ |
||
| 18 | public function asJsonModelErrors($model): Response |
||
| 36 | } |
||
| 37 |