Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Validate\Regex wrong number of parameters

$this->validate(new \Phalcon\Validation\Validator\Regex(
            array(
                'field'  => 'mobile',
                'pattern' => '/^(13[0-9]|14[0-9]|15[0-9]|18[0-9])\d{8}$/'
            )
));

wrong of parameters?



7.8k

Oh namespace has changed to Phalcon\Mvc\Model\Validator\Regex