final public function getOutput($module, $controller, $action, array $params = array(), $partial = true) {
        $view = new View();
        $controllerClass = ucfirst(\Util::hyphenToCamel($module)) . '\Controllers\\' . ucfirst(\Util::hyphenToCamel($controller)) . 'Controller';
        $controllerClass = new $controllerClass;
        $controllerClass->setView($view);
        $action = lcfirst(\Util::hyphenToCamel($action));
        $view->setController($controllerClass)
                ->setAction(lcfirst(\Util::hyphenToCamel($action)))
                ->setModule(ucfirst(\Util::hyphenToCamel($module)));
        $actionRet = call_user_func_array(array($controllerClass, $action . 'Action'), $params);
        if (is_object($actionRet) && is_a($actionRet, 'DScribe\View\View')) {
            $view = $actionRet;
        }
        else {
            $view->variables(($actionRet) ? $actionRet : array());
        }
        if ($viewFile = $view->getViewFile(false)) {
            if (!isset($viewFile[0]) && !isset($viewFile[1])) {
                $view->file($module, $controller, $viewFile[2]);
            }
            else if (!isset($viewFile[0])) {
                $view->file($module, $viewFile[1], $viewFile[2]);
            }
        }
        else {
            $view->file($module, $controller, $action);
        }

        if ($partial) {
            $view->partial();
        }

        ob_start();
        $view->render();
        return ob_get_clean();
    }
final public function getOutput($module, $controller, $action, array $params = array(), $partial = true) {
        $view = new View();
        $controllerClass = ucfirst(\Util::hyphenToCamel($module)) . '\Controllers\\' . ucfirst(\Util::hyphenToCamel($controller)) . 'Controller';
        $controllerClass = new $controllerClass;
        $controllerClass->setView($view);
        $action = lcfirst(\Util::hyphenToCamel($action));
        $view->setController($controllerClass)
                ->setAction(lcfirst(\Util::hyphenToCamel($action)))
                ->setModule(ucfirst(\Util::hyphenToCamel($module)));
        $actionRet = call_user_func_array(array($controllerClass, $action . 'Action'), $params);
        if (is_object($actionRet) && is_a($actionRet, 'DScribe\View\View')) {
            $view = $actionRet;
        }
        else {
            $view->variables(($actionRet) ? $actionRet : array());
        }
        if ($viewFile = $view->getViewFile(false)) {
            if (!isset($viewFile[0]) && !isset($viewFile[1])) {
                $view->file($module, $controller, $viewFile[2]);
            }
            else if (!isset($viewFile[0])) {
                $view->file($module, $viewFile[1], $viewFile[2]);
            }
        }
        else {
            $view->file($module, $controller, $action);
        }

        if ($partial) {
            $view->partial();
        }

        ob_start();
        $view->render();
        return ob_get_clean();
    }
final public function getOutput ( $ module , $ controller , $ action , array $ params = array ( ) , $ partial = true ) { $ view = new View ( ) ; $ controllerClass = ucfirst ( \ Util :: hyphenToCamel ( $ module ) ) . '\Controllers\\' . ucfirst ( \ Util :: hyphenToCamel ( $ controller ) ) . 'Controller' ; $ controllerClass = new $ controllerClass ; $ controllerClass -> setView ( $ view ) ; $ action = lcfirst ( \ Util :: hyphenToCamel ( $ action ) ) ; $ view -> setController ( $ controllerClass ) -> setAction ( lcfirst ( \ Util :: hyphenToCamel ( $ action ) ) ) -> setModule ( ucfirst ( \ Util :: hyphenToCamel ( $ module ) ) ) ; $ actionRet = call_user_func_array ( array ( $ controllerClass , $ action . 'Action' ) , $ params ) ; if ( is_object ( $ actionRet ) && is_a ( $ actionRet , 'DScribe\View\View' ) ) { $ view = $ actionRet ; } else { $ view -> variables ( ( $ actionRet ) ? $ actionRet : array ( ) ) ; } if ( $ viewFile = $ view -> getViewFile ( false ) ) { if ( ! isset ( $ viewFile [ 0 ] ) && ! isset ( $ viewFile [ 1 ] ) ) { $ view -> file ( $ module , $ controller , $ viewFile [ 2 ] ) ; } else if ( ! isset ( $ viewFile [ 0 ] ) ) { $ view -> file ( $ module , $ viewFile [ 1 ] , $ viewFile [ 2 ] ) ; } } else { $ view -> file ( $ module , $ controller , $ action ) ; } if ( $ partial ) { $ view -> partial ( ) ; } ob_start ( ) ; $ view -> render ( ) ; return ob_get_clean ( ) ; }
Fetches the output of an action
@param string $module
@param string $controller
@param string $action
@param array $params
@param boolean $partial Indicates whether to return partial or full view
@return string
Fetches the output of an action