extends abstract class Phalcon\Mvc\Model\Validator
implements Phalcon\Mvc\Model\ValidatorInterface
Source on GitHub
Simply validates specified string length constraints
use Phalcon\Mvc\Model\Validator\StringLength as StringLengthValidator;
class Subscriptors extends \Phalcon\Mvc\Model
{
public function validation()
{
$this->validate(new StringLengthValidator(array(
"field" => 'name_last',
'max' => 50,
'min' => 2,
'messageMaximum'