Logo::rules PHP Méthode

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.
    public function rules()
    {
        // NOTE: you should only define rules for those attributes that
        // will receive user inputs.
        return array(array('header_logo', 'file', 'types' => 'jpg, gif, png', 'allowEmpty' => true), array('secondary_logo', 'file', 'types' => 'jpg, gif, png', 'allowEmpty' => true));
    }