Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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