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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -