コード例 #1
0
 /**
  * Processes requests and renders the checkout confirmation.
  */
 public function confirmAction()
 {
     $context = $this->getContext();
     $templatePaths = Base::getAimeos()->getCustomPaths('client/html');
     $client = \Client_Html_Checkout_Confirm_Factory::createClient($context, $templatePaths);
     $view = $context->getView();
     $param = array_merge(\TYPO3\CMS\Core\Utility\GeneralUtility::_GET(), \TYPO3\CMS\Core\Utility\GeneralUtility::_POST());
     $helper = new \MW_View_Helper_Parameter_Default($view, $param);
     $view->addHelper('param', $helper);
     $client->setView($view);
     $client->process();
     $this->response->addAdditionalHeaderData($client->getHeader());
     return $client->getBody();
 }
コード例 #2
0
 public function testCreateClientNameNotFound()
 {
     $this->setExpectedException('Client_Html_Exception');
     Client_Html_Checkout_Confirm_Factory::createClient($this->_context, $this->_templatePaths, 'notfound');
 }