function action_ConfirmOrder() { session_start(); $model = $_SESSION['basket']; if (!is_null($_SESSION["login"])) { $address = $_GET['a']; $model->branch = BranchService::GetByAddress($address); $_SESSION['basket'] = $model; $this->view->generate('ConfirmOrder_view.php', 'template_view.php', $model); } else { header('Location: /Account/login'); } }