Added: MVC structure, Router, Views and Controllers for home page and login/signup
This commit is contained in:
19
app/controllers/AuthController.php
Normal file
19
app/controllers/AuthController.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class AuthController {
|
||||
public function signin() {
|
||||
$view = new View();
|
||||
$data = [
|
||||
'title' => 'Log In'
|
||||
];
|
||||
$view->render('auth/signin', $data);
|
||||
}
|
||||
|
||||
public function signup() {
|
||||
$view = new View();
|
||||
$data = [
|
||||
'title' => 'Register'
|
||||
];
|
||||
$view->render('auth/signup', $data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user