zaxcms/forms

There is no license information available for the latest version (dev-master) of this package.

dev-master 2015-01-14 19:00 UTC

This package is auto-updated.

Last update: 2024-04-13 20:55:56 UTC


README

WIP

Zax\DI\FormMessagesExtension

This tiny extension allows us to specify default error messages for custom form validators in config.

To use it, simply register it in your config.neon:

extensions:
	formMessages: Zax\DI\FormMessagesExtension

and add your messages:

formMessages:
	My\Custom\Validator::validateSomething: 'Value must be something.'
	My\Other\Custom\Validator::validateSomethingElse: 'Value must be somethin else.'
	# etc...