xssbook2/web/_controller/_index.php
2024-03-30 12:14:42 -04:00

23 lines
371 B
PHP

<?php /* Copyright (c) 2024 Freya Murphy */
class _index_controller extends Controller {
// the home model
private $home_model;
// the request model
private $request_model;
// the caceh model
private $cache_model;
public function index(): void {
if ($this->main->session) {
$this->redirect('/home');
} else {
$this->redirect('/login');
}
}
}
?>