public function innerView($view, $params = null, $return = false)
    {
        $currentDir = dirname(Utility::getClassPath($this));
        ob_start();
        if ($params) {
            foreach ($params as $key => $value) {
                $$key = $value;
            }
        }
        include $currentDir . "/" . $view . ".view.php";
        $content = ob_get_clean();
        if ($return) {
            return $content;
        } else {
            echo $content;
        }
    }
public function innerView($view, $params = null, $return = false)
    {
        $currentDir = dirname(Utility::getClassPath($this));
        ob_start();
        if ($params) {
            foreach ($params as $key => $value) {
                $$key = $value;
            }
        }
        include $currentDir . "/" . $view . ".view.php";
        $content = ob_get_clean();
        if ($return) {
            return $content;
        } else {
            echo $content;
        }
    }
public function innerView ( $ view , $ params = null , $ return = false ) { $ currentDir = dirname ( Utility :: getClassPath ( $ this ) ) ; ob_start ( ) ; if ( $ params ) { foreach ( $ params as $ key => $ value ) { $ $ key = $ value ; } } include $ currentDir . "/" . $ view . ".view.php" ; $ content = ob_get_clean ( ) ; if ( $ return ) { return $ content ; } else { echo $ content ; } }
Render inner view

@param string $view   The view name
@param array  $params Parameters for the view
@param bool   $return Wher the string should be return of be rendered

@return string If the $return is set to true then string representing
the view will be return.
Render inner view