You are on page 1of 1

C:/xampp/htdocs/sharedme/controllers/Dashboard_controller.

php
<?php

require_once './models/Main.php';
require_once './app/Conexion.php';

class Dashboard {

public $titulo;

public function __construct() {


Dashboard::Index();
Dashboard::
}

public function Index() {


//Verificamos si existe una sesion...
if (isset($_SESSION['sesion'])) {
//unset($_SESSION['sesion']);
//Si existe una sesion redireccionamos al dashboard...
$newCatcha = new Main();
$this->titulo = "SharedMe | Dashboard";
//incluimos las vistas...
//Si no existe la sesion, mostramos el login...
include_once './views/dashboard_view.php';
unset($_SESSION['notify']);
} else {
header("Location: " . BASE_URL . "login/");
}
}

$exeController = new Dashboard();


?>

1.1 of 1 2019.12.09 20:41:58

You might also like