Last active
May 28, 2019 19:23
-
-
Save reaferon/cacaa36d0ef161a08a3ae89bbdbb7b87 to your computer and use it in GitHub Desktop.
[Консоль: сериализация ошибок] #php #yii
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (!$model->validate()) { | |
| echo "Model is not valid:\n"; | |
| echo \yii\helpers\Console::errorSummary($model); | |
| return ExitCode::DATAERR; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment