dashboard and home now extending BaseController
This commit is contained in:
parent
430cada25d
commit
cc28c8d37a
@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
class DashboardController {
|
||||
class DashboardController extends BaseController {
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
@ -1,12 +1,11 @@
|
||||
<?php
|
||||
|
||||
class HomeController {
|
||||
class HomeController extends BaseController {
|
||||
|
||||
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');
|
||||
}
|
||||
// ...
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user