public static function outputDir()
    {
        if (!self::$outputDir) {
            throw new ConfigurationException("Path for output not specified. Please, set output path in global config");
        }

        $dir = self::$outputDir . DIRECTORY_SEPARATOR;
        if (strcmp(self::$outputDir[0], "/") !== 0) {
            $dir = self::$dir . DIRECTORY_SEPARATOR . $dir;
        }

        if (!file_exists($dir)) {
            @mkdir($dir, 0777, true);
        }

        if (!is_writable($dir)) {
            @chmod($dir, 0777);
        }

        if (!is_writable($dir)) {
            throw new ConfigurationException(
                "Path for output is not writable. Please, set appropriate access mode for output path: {$dir}"
            );
        }

        return $dir;
    }
public static function outputDir()
    {
        if (!self::$outputDir) {
            throw new ConfigurationException("Path for output not specified. Please, set output path in global config");
        }

        $dir = self::$outputDir . DIRECTORY_SEPARATOR;
        if (strcmp(self::$outputDir[0], "/") !== 0) {
            $dir = self::$dir . DIRECTORY_SEPARATOR . $dir;
        }

        if (!file_exists($dir)) {
            @mkdir($dir, 0777, true);
        }

        if (!is_writable($dir)) {
            @chmod($dir, 0777);
        }

        if (!is_writable($dir)) {
            throw new ConfigurationException(
                "Path for output is not writable. Please, set appropriate access mode for output path: {$dir}"
            );
        }

        return $dir;
    }
public static function outputDir ( ) { if ( ! self :: $ outputDir ) { throw new ConfigurationException ( "Path for output not specified. Please, set output path in global config" ) ; } $ dir = self :: $ outputDir . DIRECTORY_SEPARATOR ; if ( strcmp ( self :: $ outputDir [ 0 ] , "/" ) !== 0 ) { $ dir = self :: $ dir . DIRECTORY_SEPARATOR . $ dir ; } if ( ! file_exists ( $ dir ) ) { @ mkdir ( $ dir , 0777 , true ) ; } if ( ! is_writable ( $ dir ) ) { @ chmod ( $ dir , 0777 ) ; } if ( ! is_writable ( $ dir ) ) { throw new ConfigurationException ( "Path for output is not writable. Please, set appropriate access mode for output path: {$dir}" ) ; } return $ dir ; }
Returns actual path to current `_output` dir.
Use it in Helpers or Groups to save result or temporary files.

@return string
@throws Exception\ConfigurationException
Returns actual path to current _output dir . Use it in Helpers or Groups to save result or temporary files .