Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- var $validate = array(
- 'login' => array(
- 'rule' => '/^[a-z0-9]{3,}$/i',
- 'message' => 'Que des car. incorrects'
- ),
- 'email' => array(
- 'rule' => 'emails',
- 'message' => 'Ce n\'est pas un email valide'
- )
- );
- function signup() {
- if (!empty($this->data)) {
- //$this->User->data = Sanitize::clean($this->data);
- if ($this->User->save($this->data)){
- } else {
- debug('lol');
- }
- }
- }
Add Comment
Please, Sign In to add comment