32 lines
729 B
PHP
32 lines
729 B
PHP
<?php
|
|
|
|
namespace Blog\Controller;
|
|
|
|
use Blog\Model\UserModel;
|
|
|
|
class UserController{
|
|
private $view;
|
|
private $db;
|
|
private $validData = array();
|
|
private $errors = array();
|
|
private $labels = array("name" => "Name", "lastname"=> "Nachname", "email" => "E-Mail-Adresse", "password" => "Password", "role" => "Role");
|
|
|
|
public function __construct($view){
|
|
$this->db = new UserModel();
|
|
$this->view = $view;
|
|
}
|
|
|
|
public function showUserForm(){
|
|
|
|
}
|
|
|
|
public function showUserConfirmation(){
|
|
|
|
}
|
|
|
|
public function register(){
|
|
$this->db->createUser($this->labels);
|
|
$this->view->setDoMethodName("showUserConfirmation");
|
|
$this->showUserConfirmation();
|
|
}
|
|
} |