diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index f7d8948..1bc60c3 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -1,9 +1,11 @@ set('content', '../ui/views/dashboard.html'); - echo \Template::instance()->render('../ui/templates/layout.html'); + + $this->requireLogin(); + + $this->renderView('/ui/views/dashboard.html'); } } \ No newline at end of file diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index 9ee17eb..89cc3ea 100644 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -1,12 +1,11 @@ set('content', '/ui/views/home.html'); + $this->renderView('/ui/views/home.html'); - echo \Template::instance()->render('../ui/templates/layout.html'); } // ... } \ No newline at end of file