/** * Processes a general request. The result can be returned by altering the given response. * * @param Tx_Extbase_MVC_RequestInterface $request The request object * @param Tx_Extbase_MVC_ResponseInterface $response The response, modified by this handler * @throws Tx_Extbase_MVC_Exception_UnsupportedRequestType if the controller doesn't support the current request type * @return void */ public function processRequest(Tx_Extbase_MVC_RequestInterface $request, Tx_Extbase_MVC_ResponseInterface $response) { $this->template = t3lib_div::makeInstance('template'); $this->pageRenderer = $this->template->getPageRenderer(); $GLOBALS['SOBE'] = new stdClass(); $GLOBALS['SOBE']->doc = $this->template; parent::processRequest($request, $response); $pageHeader = $this->template->startpage($GLOBALS['LANG']->sL('LLL:EXT:smoothmigration/Resources/Private/Language/locallang.xml:module.title')); $pageEnd = $this->template->endPage(); $response->setContent($pageHeader . $response->getContent() . $pageEnd); }
/** * Handles a request. The result output is returned by altering the given response. * * @param Tx_Extbase_MVC_RequestInterface $request The request object * @param Tx_Extbase_MVC_ResponseInterface $response The response, modified by this handler * @return void * @api */ public function processRequest(Tx_Extbase_MVC_RequestInterface $request, Tx_Extbase_MVC_ResponseInterface $response) { $this->widgetConfiguration = $request->getWidgetContext()->getWidgetConfiguration(); parent::processRequest($request, $response); }