Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public function runAction()
	{
		$viewName = null;
		$controller = $this->context->getController();
		$request = $this->context->getRequest();
		$validationManager = $this->getValidationManager();
		$actionInstance = $this->getActionInstance();
		$moduleName = $this->getModuleName();
		$actionName = $this->getActionName();
		$method = $this->getRequestMethod();
		$requestData = $this->getRequestData();
		$useGenericMethods = false;
		$executeMethod = 'execute' . $method;
		if(!method_exists($actionInstance, $executeMethod)) {
			$executeMethod = 'execute';
			$useGenericMethods = true;
		}
		if($actionInstance->isSimple() || ($useGenericMethods && !method_exists($actionInstance, $executeMethod))) {
			$viewName = $actionInstance->getDefaultViewName();
		} else {