Guest User

Untitled

a guest
Oct 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2. var $validate = array(
  3. 'login' => array(
  4. 'rule' => '/^[a-z0-9]{3,}$/i',
  5. 'message' => 'Que des car. incorrects'
  6. ),
  7. 'email' => array(
  8. 'rule' => 'emails',
  9. 'message' => 'Ce n\'est pas un email valide'
  10. )
  11. );
  12.  
  13.  
  14.  
  15. function signup() {
  16. if (!empty($this->data)) {
  17.  
  18. //$this->User->data = Sanitize::clean($this->data);
  19.  
  20. if ($this->User->save($this->data)){
  21.  
  22. } else {
  23. debug('lol');
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment