mirror of
https://github.com/mivodev/mivo.git
synced 2026-01-26 13:31:56 +07:00
Initial Release v1.0.0: Full feature set with Docker automation, Nginx/Alpine stack
This commit is contained in:
34
app/Controllers/HomeController.php
Normal file
34
app/Controllers/HomeController.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use App\Core\Controller;
|
||||
|
||||
class HomeController extends Controller {
|
||||
public function __construct() {
|
||||
\App\Core\Middleware::auth();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
// Fetch real router sessions from Config model
|
||||
$config = new \App\Models\Config();
|
||||
$routers = $config->getAllSessions();
|
||||
|
||||
$data = [
|
||||
'routers' => $routers
|
||||
];
|
||||
|
||||
$this->view('home', $data);
|
||||
}
|
||||
|
||||
public function designSystem() {
|
||||
$data = ['title' => 'MIVO - Design System'];
|
||||
$this->view('design_system', $data);
|
||||
}
|
||||
|
||||
public function testAlert() {
|
||||
\App\Helpers\FlashHelper::set('success', 'toasts.test_alert', 'toasts.test_alert_desc', [], true);
|
||||
header("Location: /");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user