モデルで次のコードを使用して、フォーム バリデーターのエラー メッセージを変更できます。
array('name, email, subject, body', 'required'
'message'=>'Please enter a value for {attribute}.'),
しかし、{attribute} がどこから来たのか、フィールドごとに変更する方法がわからないので、助けていただければ幸いです。
モデルで次のコードを使用して、フォーム バリデーターのエラー メッセージを変更できます。
array('name, email, subject, body', 'required'
'message'=>'Please enter a value for {attribute}.'),
しかし、{attribute} がどこから来たのか、フィールドごとに変更する方法がわからないので、助けていただければ幸いです。