public function HashPath($path, $theme = true)
    {
        $filepath = $this->getPath($path, $theme);
        $path_parts = pathinfo($filepath);

        return sprintf(
            self::$format,
            str_replace(BASE_PATH . (self::$relativeLinks ? '/' : ''), '', $path_parts['dirname']),
            basename($path, ".{$path_parts['extension']}"),
            $this->HashFile($filepath, false),
            $path_parts['extension']
        );
    }
public function HashPath($path, $theme = true)
    {
        $filepath = $this->getPath($path, $theme);
        $path_parts = pathinfo($filepath);

        return sprintf(
            self::$format,
            str_replace(BASE_PATH . (self::$relativeLinks ? '/' : ''), '', $path_parts['dirname']),
            basename($path, ".{$path_parts['extension']}"),
            $this->HashFile($filepath, false),
            $path_parts['extension']
        );
    }
public function HashPath ( $ path , $ theme = true ) { $ filepath = $ this -> getPath ( $ path , $ theme ) ; $ path_parts = pathinfo ( $ filepath ) ; return sprintf ( self :: $ format , str_replace ( BASE_PATH . ( self :: $ relativeLinks ? '/' : '' ) , '' , $ path_parts [ 'dirname' ] ) , basename ( $ path , ".{$path_parts['extension']}" ) , $ this -> HashFile ( $ filepath , false ) , $ path_parts [ 'extension' ] ) ; }
Template function to return new web path to asset which includes
md5 hash
@param  string $path Relative or absolute path to file
@param  boolean $theme Whether or not to take current theme into account
@return string  The web path include the md5 hash
Template function to return new web path to asset which includes md5 hash