Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace app\models;
- class RegForm extends AppModel{
- public $name;
- public $email;
- public $pass;
- public $dblpass;
- public static function tableName() {
- return 'user';
- }
- public function registr(){
- $user=new RegForm();
- $user->email=$this->email;
- $user->name=$this->name;
- $user->pass=$this->pass;
- return $user->save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement