HTRouter
HTRouter copied to clipboard
Documentation Not Accurate
Following the setup and usage documentation yields /path/to/htrouter.phar is not a directory.
Same problem.
Using the directory in which the htrouter.phar file exists also does not solve the problem.
I think the phar file download is missing. You'll have to build it, and replace path/to/
by the actual relative path to the generated htrouter.phar
file.
Same problem for me: [/path/to]/htrouter.phar is not a directory
I am working on a Symfony2 project on a Windows DEV environment. I cloned the repo and built the htrouter.phar.
I've copied the entire htrouter
folder including the Module
subfolder into my project root.
This would help me prevent the issues mentioned in #1 aka #2 .
The option -t
does not - no longer? - exist when running the built-in webserver with the current Symfony commands so I had to use:
php app/console server:run -r htrouter
This will link to the htrouter
folder that now includes a copy of htrouter.phar
.
My document root now contains /htrouter
and /web
as the public folder. I also tried copying the folder into my public folder.
In both cases I get: Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:\Users\webdeviloper\NetBeansProjects\Acme\web\htrouter' (include_path='.;C:\php\pear') in Unknown on line 0
ping @jaytaph ?
If you're running the command from the same directory your .phar is in, it still needs a "directory" parameter, so use dot:
php -S 0.0.0.0:80 -t . htrouter.phar
This works for me to load the server, then I run into other issues I'll express elsewhere.
I will give it a try @Psykoral . Maybe it is a problem when running the command for Symfony2
inside my NetBeans
IDE too. I wil test! Thanks