public function forward($forward = [])
    {
        $controller = isset($forward['controller'])
            ? $forward['controller']
            : null;

        $action = isset($forward['action'])
            ? $forward['action']
            : null;
        
        $params = isset($forward['params'])
            ? $forward['params']
            : [];

        $this->setControllerName($controller);
        $this->setActionName($action);
        $this->setParams($params);

        $this->isCallableOrException();
        return $this->dispatch();
    }
public function forward($forward = [])
    {
        $controller = isset($forward['controller'])
            ? $forward['controller']
            : null;

        $action = isset($forward['action'])
            ? $forward['action']
            : null;
        
        $params = isset($forward['params'])
            ? $forward['params']
            : [];

        $this->setControllerName($controller);
        $this->setActionName($action);
        $this->setParams($params);

        $this->isCallableOrException();
        return $this->dispatch();
    }
public function forward ( $ forward = [ ] ) { $ controller = isset ( $ forward [ 'controller' ] ) ? $ forward [ 'controller' ] : null ; $ action = isset ( $ forward [ 'action' ] ) ? $ forward [ 'action' ] : null ; $ params = isset ( $ forward [ 'params' ] ) ? $ forward [ 'params' ] : [ ] ; $ this -> setControllerName ( $ controller ) ; $ this -> setActionName ( $ action ) ; $ this -> setParams ( $ params ) ; $ this -> isCallableOrException ( ) ; return $ this -> dispatch ( ) ; }
Forward to a controller, action with parameters.

@param array $forward with details for controller, action, parameters.

@return mixed result from dispatched controller action.
Forward to a controller action with parameters .