We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f025f commit 2202cb6Copy full SHA for 2202cb6
generators/crud2/default/controller.php
@@ -227,7 +227,7 @@ protected function findModel(<?= $actionParams ?>) {
227
if (($model = <?= $modelClass ?>::findOfUser(<?= $condition ?>, ['setScenario' => true])) !== null) {
228
return $model;
229
} else {
230
- throw new NotFoundHttpException('The requested page does not exist.');
+ return new NotFoundHttpException('The requested page does not exist.');
231
}
232
233
0 commit comments