Skip to content

Instantly share code, notes, and snippets.

@mattmutt
Created May 13, 2016 23:48
Show Gist options
  • Save mattmutt/9043ec9fc714cba7cb97a29cd91a97f5 to your computer and use it in GitHub Desktop.
Save mattmutt/9043ec9fc714cba7cb97a29cd91a97f5 to your computer and use it in GitHub Desktop.
//DISPLAY
if ($ordered) {
$this->params['orderId'] = $session->get('currentOrderId');
$this->params['optionNames'] = '';
if ($pgId) {
$orderItem = $this->orderItemRepository->getOneByPrintGroupId($pgId);
$this->params['optionNames'] = $orderItem->getOrderItemOptionValueNames();
}
$this->viewName = 'OpensoftOnpWebBundle:Approval:ordered.html.twig';
} else {
$this->viewName = 'OpensoftOnpWebBundle:Approval:approval.html.twig';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment