11.. _validation :
22
3+ ##########
34Validation
45##########
56
@@ -10,6 +11,7 @@ helps minimize the amount of code you'll write.
1011 :local:
1112 :depth: 2
1213
14+ ********
1315Overview
1416********
1517
@@ -42,6 +44,7 @@ messages, various control structures are usually placed within the form
4244HTML. Form validation, while simple to create, is generally very messy
4345and tedious to implement.
4446
47+ ************************
4548Form Validation Tutorial
4649************************
4750
@@ -197,6 +200,7 @@ Then add validation rules in the controller (**Form.php**):
197200
198201If you submit the form you should see the success page or the form with error messages.
199202
203+ *********************
200204Config for Validation
201205*********************
202206
@@ -238,6 +242,7 @@ If you want to use traditional rules, you need to change the rule classes in **a
238242
239243.. literalinclude :: validation/003.php
240244
245+ *******************
241246Loading the Library
242247*******************
243248
@@ -251,6 +256,7 @@ for including multiple Rulesets, and collections of rules that can be easily reu
251256.. note :: You may never need to use this method, as both the :doc:`Controller </incoming/controllers>` and
252257 the :doc: `Model </models/model >` provide methods to make validation even easier.
253258
259+ ************************
254260Setting Validation Rules
255261************************
256262
@@ -311,6 +317,7 @@ data to be validated:
311317 is not HTML form post (``Content-Type: multipart/form-data ``),
312318 or gets data from :ref: `$request->getVar() <incomingrequest-getting-data >`.
313319
320+ ***********************
314321Working with Validation
315322***********************
316323
@@ -426,6 +433,7 @@ So it will ignore the row in the database that has ``id=4`` when it verifies the
426433This can also be used to create more dynamic rules at runtime, as long as you take care that any dynamic
427434keys passed in don't conflict with your form data.
428435
436+ *******************
429437Working With Errors
430438*******************
431439
@@ -532,6 +540,7 @@ When specifying a field with a wildcard, all errors matching the mask will be ch
532540
533541.. _validation-customizing-error-display :
534542
543+ *************************
535544Customizing Error Display
536545*************************
537546
@@ -580,6 +589,7 @@ right after the name of the field the error should belong to::
580589
581590 <?= $validation->showError('username', 'my_single') ?>
582591
592+ *********************
583593Creating Custom Rules
584594*********************
585595
@@ -654,6 +664,7 @@ Or you can use the following parameters:
654664
655665.. literalinclude :: validation/041.php
656666
667+ ***************
657668Available Rules
658669***************
659670
0 commit comments