public function action_item() { PermissionHelper::Verification('Editor'); $status_id = $_GET['id']; $model = OrderHelper::PopulateOrderDetailViewModelList(OrderService::GetByStatusId($status_id)); $this->view->generate('/Order/item_view.php', 'template_view.php', $model); }
function action_order() { session_start(); $login = $_SESSION["login"]; if (!is_null($login)) { $model = OrderHelper::PopulateOrderDetailViewModelList(OrderService::GetByAccountId(AccountService::GetByName($login, true)->account_id)); $this->view->generate('/Account/order_view.php', 'template_view.php', $model); } else { header("Location: /Product/"); } }