public static function show($bet) { $_SESSION['headertitle'] = "Betting"; $_SESSION['styles'] = array('jumbotron.css', 'games.css'); MasterView::showHeader(); MasterView::showNav(); BetView::stuff(); BetView::showGames(); BetView::showDetails($bet); MasterView::showFooter(null); MasterView::showPageEnd(); }
public static function run() { // Perform actions related to Betting $action = array_key_exists('action', $_SESSION) ? $_SESSION['action'] : ""; $arguments = $_SESSION['arguments']; switch ($action) { case "generate": GameController::generateNewGame(); BetView::showGames(); break; default: BetController::show(); } }