/** * Calls the specified action method and passes the arguments. * * If the action returns a string, it is appended to the content in the * response object. If the action doesn't return anything and a valid * view exists, the view is rendered automatically. * * @param string $actionMethodName Name of the action method to call * @return void * @api */ protected function callActionMethod() { $argumentsAreValid = TRUE; $preparedArguments = array(); foreach ($this->arguments as $argument) { $preparedArguments[] = $argument->getValue(); } if ($this->argumentsMappingResults->hasErrors()) { $actionResult = call_user_func(array($this, $this->errorMethodName)); } else { $actionResult = call_user_func_array(array($this, $this->actionMethodName), $preparedArguments); } if ($actionResult === NULL && $this->view instanceof Tx_Extbase_MVC_View_ViewInterface) { $this->response->appendContent($this->view->render()); } elseif (is_string($actionResult) && strlen($actionResult) > 0) { $this->response->appendContent($actionResult); } }
/** * Renders the view * * @return string The rendered view */ public function render() { return $this->view->render(); }