Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace appcomponents;
- public function events()
- {
- return [
- ActiveRecord::EVENT_BEFORE_VALIDATE => 'beforeValidate',
- ];
- }
- public function beforeValidate($event)
- {
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement