Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. namespace app\models;
  2.  
  3.  
  4.  
  5.  
  6. class RegForm extends AppModel{
  7.  
  8. public $name;
  9. public $email;
  10. public $pass;
  11. public $dblpass;
  12.  
  13. public static function tableName() {
  14. return 'user';
  15. }
  16.  
  17. public function registr(){
  18.  
  19. $user=new RegForm();
  20. $user->email=$this->email;
  21. $user->name=$this->name;
  22. $user->pass=$this->pass;
  23. return $user->save();
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement