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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -