Skip to content
This repository was archived by the owner on Aug 6, 2018. It is now read-only.
This repository was archived by the owner on Aug 6, 2018. It is now read-only.

Hi, guy. I tried to use your action viewHelper and change something. #18

@llpereiras

Description

@llpereiras
serviceLocator = $serviceLocator; return $this; } /** - Get the service locator. * - @return \Zend\ServiceManager\ServiceLocatorInterface */ public function getServiceLocator() { return $this->serviceLocator; } public function __invoke($controllerName, $actionName, $module = null, $params = array()) { $controllerLoader = $this->serviceLocator->getServiceLocator()->get('ControllerLoader'); $controllerLoader->setInvokableClass($controllerName , $module.'\Controller\'.$controllerName.'Controller'); $controller = $controllerLoader->get($controllerName); return $controller->{$actionName.'Action'}($params); } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions