Skip to content

Commit

Permalink
Merge pull request #7806 from MarwanSalim/patch-19
Browse files Browse the repository at this point in the history
Update form.rst
  • Loading branch information
markstory committed Feb 5, 2024
2 parents 9f0e8e5 + 28e7f10 commit a20d681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/views/helpers/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1814,12 +1814,12 @@ error messages per field.

Example::

// If in TicketsTable you have a 'notEmpty' validation rule:
// If in TicketsTable you have a 'notEmptyString' validation rule:
public function validationDefault(Validator $validator): Validator
{
$validator
->requirePresence('ticket', 'create')
->notEmpty('ticket');
->notEmptyString('ticket');
}

// And inside templates/Tickets/add.php you have:
Expand Down

0 comments on commit a20d681

Please sign in to comment.