@@ -401,7 +401,11 @@ be applied. If you have custom error message that you want to use, place them in
401
401
402
402
The other way to set the validation rules to fields by functions,
403
403
404
- .. php :function :: setValidationRule($field, $fieldRules)
404
+ .. php :namespace :: CodeIgniter
405
+
406
+ .. php :class :: Model
407
+
408
+ .. php :method :: setValidationRule($field, $fieldRules)
405
409
406
410
:param string $field:
407
411
:param array $fieldRules:
@@ -412,7 +416,7 @@ The other way to set the validation rules to fields by functions,
412
416
413
417
.. literalinclude :: model/028.php
414
418
415
- .. php :function :: setValidationRules($validationRules)
419
+ .. php :method :: setValidationRules($validationRules)
416
420
417
421
:param array $validationRules:
418
422
@@ -424,7 +428,7 @@ The other way to set the validation rules to fields by functions,
424
428
425
429
The other way to set the validation message to fields by functions,
426
430
427
- .. php :function :: setValidationMessage($field, $fieldMessages)
431
+ .. php :method :: setValidationMessage($field, $fieldMessages)
428
432
429
433
:param string $field:
430
434
:param array $fieldMessages:
@@ -435,7 +439,7 @@ The other way to set the validation message to fields by functions,
435
439
436
440
.. literalinclude :: model/030.php
437
441
438
- .. php :function :: setValidationMessages($fieldMessages)
442
+ .. php :method :: setValidationMessages($fieldMessages)
439
443
440
444
:param array $fieldMessages:
441
445
0 commit comments