|
|
@@ -42,9 +42,9 @@ class ContactForm extends Form
|
|
|
|
|
|
In the above example we see the 3 hook methods that forms provide:
|
|
|
|
|
|
-- _buildSchema is used to define the schema data. You can define field type, length, and precision.
|
|
|
-- _buildValidator Gets a Cake\Validation\Validator instance that you can attach validators to.
|
|
|
-- _execute lets you define the behavior you want to happen when execute() is called and the data is valid.
|
|
|
+- `_buildSchema()` is used to define the schema data. You can define field type, length, and precision.
|
|
|
+- `_buildValidator()` Gets a `Cake\Validation\Validator` instance that you can attach validators to.
|
|
|
+- `_execute()` lets you define the behavior you want to happen when `execute()` is called and the data is valid.
|
|
|
|
|
|
You can always define additional public methods as you need as well.
|
|
|
|