dashboard and home now extending BaseController

This commit is contained in:
tp_dhu 2025-03-25 09:13:57 +00:00
parent 430cada25d
commit cc28c8d37a
2 changed files with 7 additions and 6 deletions

View File

@ -1,9 +1,11 @@
<?php <?php
class DashboardController { class DashboardController extends BaseController {
function index($f3){ function index($f3){
$f3->set('content', '../ui/views/dashboard.html');
echo \Template::instance()->render('../ui/templates/layout.html'); $this->requireLogin();
$this->renderView('/ui/views/dashboard.html');
} }
} }

View File

@ -1,12 +1,11 @@
<?php <?php
class HomeController { class HomeController extends BaseController {
public function display($f3){ public function display($f3){
$f3->set('content', '/ui/views/home.html'); $this->renderView('/ui/views/home.html');
echo \Template::instance()->render('../ui/templates/layout.html');
} }
// ... // ...
} }