Created
September 19, 2014 12:29
-
-
Save ollieread/4688243de6a66665dd40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyValidator extends BaseValidator | |
{ | |
public static $rules = [ | |
'create' => [ | |
'field' => ['rule1', 'rule2'] | |
], | |
'update' => [ | |
'field' => ['rule3'] | |
] | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment