CakePHP4のメモ
![]() |
13 |
651 views
ちょっと汚いけど、以下の感じでバリデーションのエラーメッセージは引っこ抜ける。
$ent = $this->Org->newEntity($params);
if($ent->hasErrors()) {
$message = "";
foreach ($ent->getErrors() as $records) {
foreach($records as $key=>$value) {
$message = $message . $value."\n";
}
}
}
Page 7 of 34.
1.php_xdebug-3.0.4-8.0-vs16-x86_64.dll
すぺぺぺ
本サイトの作成者。
プログラムは趣味と勉強を兼ねて、のんびり本サイトを作っています。
フレームワークはdjango。
ChatGPTで自動プログラム作成に取り組み中。
https://www.osumoi-stdio.com/novel/