This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Eventos extends Controller { | |
public function __construct(){ | |
if (!estaLogado()){ | |
redirect('usuario/login '); | |
} | |
//instancia as classes do model | |
$this->postModel = $this->model('Evento'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Evento{ | |
private $db; | |
public function __construct(){ | |
$this->db = new Database; | |
} | |
public function getEventos(){ | |
$this->db->query('SELECT *, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require APPROOT . '/views/inc/header.php'; | |
?> | |
<div class="row"> | |
<div class="col-md-11"> | |
<h5 class="mt-2">Criar Novo Evento</h5> | |
</div> | |
<div class="col-md-0"> |