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); }
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"'; ?> >
public static function logout() { $vars = array('persona' => isset($_SESSION['persona']) ? $_SESSION['persona'] : NULL); session_destroy(); \Core\View::show('auth/' . __FUNCTION__, $vars); }
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); }