Validation\Validator\PresenceOf
Class Phalcon\Validation\Validator\PresenceOf
extends abstract class Phalcon\Validation\Validator
implements Phalcon\Validation\ValidatorInterface
Validates that a value is not null or empty string
use Phalcon\Validation\Validator\PresenceOf; $validator->add('name', new PresenceOf(array( 'message' => 'The name is required' )));
Methods
public boolean validate (Phalcon\Validation $validator, string $attribute)
Executes the validation