src/Hive/Console/TemplateCommand.php
protected function getWebPath($output)
    {
        $path = trim(dirname($output), '/');
        $count = count(explode('/', $path));

        $path = '';

        for ($i = 0; $i < $count-1; $i++) {
            $path.= '/..';
        }

        return $path;
    }
protected function getWebPath($output)
    {
        $path = trim(dirname($output), '/');
        $count = count(explode('/', $path));

        $path = '';

        for ($i = 0; $i < $count-1; $i++) {
            $path.= '/..';
        }

        return $path;
    }
protected function getWebPath ( $ output ) { $ path = trim ( dirname ( $ output ) , '/' ) ; $ count = count ( explode ( '/' , $ path ) ) ; $ path = '' ; for ( $ i = 0 ; $ i < $ count - 1 ; $ i ++ ) { $ path .= '/..' ; } return $ path ; }
Computes the relative path within the web root folder.
Expects the standard hive-app project layout.

@param $output
@return string
Computes the relative path within the web root folder . Expects the standard hive - app project layout .