Erstellung der Funktionalität für die Registration (nicht fertig)

This commit is contained in:
H1tkliff
2025-06-13 11:09:47 +02:00
parent dcb53cd8f8
commit 7dc2b86d9a
10 changed files with 124 additions and 31 deletions

View File

@@ -0,0 +1,27 @@
<?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", "email" => "E-Mail-Adresse", "content" => "Nachricht");
public function __construct($view){
$this->db = new UserModel();
$this->view = $view;
}
public function showUserForm(){
}
public function register(){
$this->db->createUser($this->labels);
}
}