Skip to content

Commit

Permalink
Merge pull request #7847 from cakephp/form
Browse files Browse the repository at this point in the history
Update form.rst (fr, ja sync)
  • Loading branch information
markstory committed May 9, 2024
2 parents 2fded8d + 355cdc3 commit 39dbb98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fr/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1847,12 +1847,12 @@ plusieurs messages d'erreur pour un seul champ.

Exemple::

// Si vous avez une règle de validation 'notEmpty' dans TicketsTable:
// Si vous avez une règle de validation 'notEmptyString' dans TicketsTable:
public function validationDefault(Validator $validator): Validator
{
$validator
->requirePresence('ticket', 'create')
->notEmpty('ticket');
->notEmptyString('ticket');
}

// Et dans templates/Tickets/add.php vous avez:
Expand Down
4 changes: 2 additions & 2 deletions ja/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1877,12 +1877,12 @@ FormHelper は、フィールドエラーを簡単にチェックしたり、必

例::

// TicketsTable に 'notEmpty' 検証ルールがある場合:
// TicketsTable に 'notEmptyString' 検証ルールがある場合:
public function validationDefault(Validator $validator)
{
$validator
->requirePresence('ticket', 'create')
->notEmpty('ticket');
->notEmptyString('ticket');
}

// そして、 templates/Tickets/add.php の中が次のような場合:
Expand Down

0 comments on commit 39dbb98

Please sign in to comment.