@@ -147,13 +147,13 @@ To try your form, visit your site using a URL similar to this one::
147
147
example.com/index.php/form/
148
148
149
149
If you submit the form you should simply see the form reload. That's
150
- because you haven't set up any validation rules in `` $this->validate() ` ` yet.
150
+ because you haven't set up any validation rules in :ref: ` controller-validatedata ` yet.
151
151
152
- The ``validate () `` method is a method in the Controller. It uses
153
- the **Validation class ** inside. See :ref: `controllers-validating-data `.
152
+ The ``validateData () `` method is a method in the Controller. It uses
153
+ the **Validation class ** inside. See :ref: `controller-validatedata `.
154
154
155
- .. note :: Since you haven't told the ``validate ()`` method to validate anything
156
- yet, it **returns false ** (boolean false) **by default **. The ``validate () ``
155
+ .. note :: Since you haven't told the ``validateData ()`` method to validate anything
156
+ yet, it **returns false ** (boolean false) **by default **. The ``validateData () ``
157
157
method only returns true if it has successfully applied your rules without
158
158
any of them failing.
159
159
@@ -189,7 +189,7 @@ It loads the form helper used by your view files.
189
189
190
190
The controller has one method: ``index() ``. This method returns
191
191
the **signup ** view to show the form when a non-POST request comes. Otherwise, it
192
- uses the Controller-provided `` validate() ` ` method. It also runs the validation routine.
192
+ uses the Controller-provided :ref: ` controller-validatedata ` method. It also runs the validation routine.
193
193
Based on whether the validation was successful it either presents the
194
194
form or the success page.
195
195
0 commit comments