Jump to content

[authentication.tpl] Rendre le champs telephone portable requis


Recommended Posts

Bonjour,

 

Je voudrais rendre le champs téléphone portable obligatoire pour toutes inscriptions.

j'ai modifier le fichier de classe Customer.php comme ceci:

 protected  $fieldsRequired = array('lastname', 'passwd', 'firstname', 'email', 'phone_mobile');
 protected  $fieldsSize = array('lastname' => 32, 'passwd' => 32, 'firstname' => 32, 'email' => 128, 'dni' => 16, 'phone_mobile' => 10);

le probleme est que je ne sais quoi mettre a cette ligne la :

protected  $fieldsValidate = array('secure_key' => 'isMd5', 'lastname' => 'isName', 'firstname' => 'isName', 'email' => 'isEmail', 'passwd' => 'isPasswd',
  'id_gender' => 'isUnsignedId', 'birthday' => 'isBirthDate', 'newsletter' => 'isBool', 'optin' => 'isBool', 'active' => 'isBool', 'dni' => 'isDni');

 

quelqu'un pourrai t'il m'aider car il me semble que sans cette derniere fonction cela ne fonctionne pas.

 

Merci d'avance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...