mvc-base/Controller/user.php

23 lines
628 B
PHP
Raw Permalink Normal View History

2024-09-09 20:07:44 +02:00
<?php
class user extends Controller{
protected function home(){
$viewmodel = new UserModel();
$this->returnView($viewmodel->home(), true);
}
protected function login(){
$viewmodel = new UserModel();
$this->returnView($viewmodel->login(), true);
}
protected function logout(){
$viewmodel = new UserModel();
$this->returnView($viewmodel->logout(), true);
}
protected function register(){
$viewmodel = new UserModel();
$this->returnView($viewmodel->register(), true);
}
protected function change(){
$viewmodel = new UserModel();
$this->returnView($viewmodel->change(), true);
}
}