validation - Yii2. Custom class validator -
i implemented custom class validator "app\validators\testvalidator". in place of configuration file necessary register enable validation in model? example: ['field', 'test']. thanks.
['field', testvalidator::classname()]
sure should add use able autoload validator in app or
['field',app\validators\testvalidator::classname()]
Comments
Post a Comment