Hey,
I'm trying to use the haxe web dispatcher but I'm experiencing some trouble.
So first, my host is under a folder called haxe.
Then, my project is under haxe/project.
The project is compiled under haxe/project/bin.
So basically, the index url is "haxe/project/bin/index.php"
To use the web dispatcher, I also use a .htaccess which hide index.php so my URL can look like "haxe/project/bin/dispatcher/args"
What I want to retrieve to use the web dispatcher is "/dispatcher/args"
Using Web.getUri() provides me "/project/bin/dispatcher/args". Not everybody in the project is having the same host tree so some people don't have any problems.
The only workaround I found to stay flexible to others is to use "untyped __var__('_SERVER', 'SCRIPT_NAME')" to cut the first part of getUri().
However, it seems so ugly that I really want to find an alternative.
So how to this properly ?