hoaproject/Xyl — pull request #12 by 1e1 (2014-06-07 21:39:21+00:00)
Title: Howto convert my own Protocol to HTTP route? #11

Allow to use Hoa wrapper for remote files (even media filer)

HOWTO:

- index.php
$hoa = Hoa\Core\Core::getInstance();
$params = $hoa->getParameters();
$params->setParameter('url.Static', 'http://static.myServer.com');
$params->setParameter('protocol.Static', 'ntfs://mount/anchor/path/to/dir' . DS);
$params->setParameter('protocol.Static/Public', 'Public' . DS);
$hoa->setProtocol();

- somewhere in a Xyl document:
<… href="hoa://Static/Public/Media/myMovie.mpg">