Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
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 {
This paste will be private.
From the Design Piracy series on my blog: