kohana orm validation - unique, min length, mah length, not empty rules

other
voted: 1
vote
php kohana orm validation frameworks

Kohana orm validation

public function rules() {
        return array(
            'title' => array(
                array('not_empty'),
                array('max_length', array(':value', 99)),
                array('min_length', array(':value', 2)),
                array(array($this, 'unique'), array('title', ':value')),
            ),
        );
    }
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.