Exemplo n.º 1
0
 public function viewOrderAction()
 {
     // web page title
     $this->view->title = "Résumé de la commande";
     $orderId = $this->_getParam('ID');
     $redirectTo = "/order/index/list-orders/";
     if (!empty($orderId)) {
         $details = array();
         $oOrder = new OrderObject();
         $details = $oOrder->populate($orderId, $this->_defaultEditLanguage);
         $form = new FormViewOrder(array('cancelUrl' => "{$this->view->baseUrl()}{$redirectTo}", 'disabledSaveAction' => true, 'data' => $details));
         $this->view->assign('form', $form);
     }
 }