Benutzeranmeldung weiter
This commit is contained in:
@@ -5,11 +5,11 @@ namespace Blog\Controller;
|
||||
use Blog\Model\UserModel;
|
||||
|
||||
class UserController{
|
||||
private $view;
|
||||
private $view;
|
||||
private $db;
|
||||
private $validData = array();
|
||||
private $errors = array();
|
||||
private $labels = array("name" => "Name", "email" => "E-Mail-Adresse", "content" => "Nachricht");
|
||||
private $labels = array("name" => "Name", "lastname"=> "Nachname", "email" => "E-Mail-Adresse", "password" => "Password", "role" => "Role");
|
||||
|
||||
public function __construct($view){
|
||||
$this->db = new UserModel();
|
||||
@@ -20,8 +20,13 @@ class UserController{
|
||||
|
||||
}
|
||||
|
||||
public function showUserConfirmation(){
|
||||
|
||||
}
|
||||
|
||||
public function register(){
|
||||
$this->db->createUser($this->labels);
|
||||
$this->view->setDoMethodName("showUserConfirmation");
|
||||
$this->showUserConfirmation();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user