Exemplo n.º 1
0
 public static function handle()
 {
     if (\Core\Controller::method(__CLASS__)) {
         return TRUE;
     }
     $vars = array('js' => array('public/js/zubb.js', 'models/glucose-insulin', 'js/table.js'), 'asides' => ['inputs']);
     session_regenerate_id(TRUE) && session_write_close();
     \Core\View::show('table', $vars);
 }
Exemplo n.º 2
0
        echo $name;
        ?>
</a></li>
<?php 
    }
    ?>
</ul></nav>
<?php 
}
?>
</header>

<?php 
if (isset($asides)) {
    ?>
<aside>
<?php 
    foreach ($asides as $aside) {
        \Core\View::show($aside);
    }
    ?>
</aside>
<?php 
}
?>

<main<?php 
echo isset($asides) ? '' : ' class="no-asides"';
?>
>
Exemplo n.º 3
0
 public static function logout()
 {
     $vars = array('persona' => isset($_SESSION['persona']) ? $_SESSION['persona'] : NULL);
     session_destroy();
     \Core\View::show('auth/' . __FUNCTION__, $vars);
 }
Exemplo n.º 4
0
 public function glucose_svg()
 {
     $vars = ['js' => ['public/js/d3.js', 'js/graphs/glucose.js']];
     session_regenerate_id(TRUE) && session_write_close();
     \Core\View::show('svg', $vars);
 }