예제 #1
0
<?php

require_once '..\\..\\vendor\\autoload.php';
use App\Classes\Session\Sessao;
$session = Sessao::instanciar();
if ($session->existe('error')) {
    $error = $session->get('error');
}
if ($session->existe('field')) {
    $field = $session->get('field');
}
include '../../partials/top-admin.php';
include '../../partials/menu-admin.php';
if (empty($_REQUEST)) {
    $session->destroy('error');
    $session->destroy('field');
}
?>

    <div class="container" id="large">

        <div class="row">
            <div class="col-md-2">
                <?php 
include '../../partials/menu-left-admin.php';
?>
            </div>
            <div class="col-md-10">
                <div class="pull-right">
                    <button onclick="$('#create').submit();" class="btn btn-success"><i class="fa fa-user-plus"></i>
                        Salvar Usuário
예제 #2
0
 public function logoff()
 {
     $sess = Sessao::instanciar();
     $sess->destroy('usuario');
     header('location: controle.php?acao=sair');
 }