Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Feb 15, 2024
1 parent 8a0e571 commit 6c18c6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/Sandbox/templates/ToolsExamples/trim.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
TXT;
echo $this->Highlighter->highlight($dataPrint, ['lang' => 'php']);
?>
<p>Imagine the behavior change if this was invoked for empty string that is actually just containing whitespace/noise.</p>
<p>
Imagine the behavior change if this was invoked for empty string that is actually just containing whitespace/noise.
<br>
The same for model validation rules that rely on not empty string input for the data to be saved to make sense .
</p>

<h3>Form post Example</h3>
<p>Try to pass validation rule notEmpty by adding whitespace (e.g. space) into the input (or before/after a string input).</p>
Expand Down

0 comments on commit 6c18c6f

Please sign in to comment.