If you are writing your own validator rules to a very specific objects, you can use extend either this class or Validator_Basic. NOTE: How to write rules: Do not attempt to put all the rules for a single field on a line. Many rules will change the value of acumulator, so please add as many rules as necessary is(array( 'name|len|gt|20', 'name|!rude', 'name|to_ucfirst', )); Finally - you can add one validator inside another to extends it's rules.
Inheritance: extends AbstractController
Example #1
0
File: Basic.php Project: atk4/atk4
 public function init()
 {
     parent::init();
     $this->alias = array_merge($this->alias, array('same' => 'eq', 'different' => 'ne'));
 }