-
-
Notifications
You must be signed in to change notification settings - Fork 24
Configuration
jreyben edited this page May 1, 2015
·
3 revisions
In your ColdBox.cfc Configuration File you can declare the following validation structure to configure the validation engine:
validation = {
manager = "class path",
sharedConstraints = {
sharedName = { constraints }
}
}
Key | Type | Required | Default | Description |
---|---|---|---|---|
manager | instantiation path or WireBox ID | false | coldbox.system.validation.ValidationManager | You can override the default ColdBox validation manager with your own implementation. Just use an instantiation path or a valid WireBox object id. |
sharedConstraints | struct | false | {} | This structure will hold all of your shared constraints for forms or/and objects. |
Important ColdBox will also create a mapping to your validation manager with the id: WireBoxValidationManager, so you can easily retrieve it.