public static function getViewContent($path) {
        if ($path === false) {
            throw new \Exception('The view file is not specified. Probably the correct path to the file was not found. Make sure that all paths are specified correctly, the files exists and is available.');
        }

        ob_start();

        require($path);

        $result = ob_get_contents();

        ob_end_clean();

        return $result;
    }
public static function getViewContent($path) {
        if ($path === false) {
            throw new \Exception('The view file is not specified. Probably the correct path to the file was not found. Make sure that all paths are specified correctly, the files exists and is available.');
        }

        ob_start();

        require($path);

        $result = ob_get_contents();

        ob_end_clean();

        return $result;
    }
public static function getViewContent ( $ path ) { if ( $ path === false ) { throw new \ Exception ( 'The view file is not specified. Probably the correct path to the file was not found. Make sure that all paths are specified correctly, the files exists and is available.' ) ; } ob_start ( ) ; require ( $ path ) ; $ result = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ result ; }
Gets the content of the view.

@param string $path File name or path to the view file.

@return string
Gets the content of the view .