HTRouter icon indicating copy to clipboard operation
HTRouter copied to clipboard

Documentation Not Accurate

Open pnovotnak opened this issue 10 years ago • 7 comments

Following the setup and usage documentation yields /path/to/htrouter.phar is not a directory.

pnovotnak avatar Sep 01 '14 20:09 pnovotnak

Same problem.

Using the directory in which the htrouter.phar file exists also does not solve the problem.

maan81 avatar Oct 16 '14 15:10 maan81

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.

wernight avatar Oct 16 '14 16:10 wernight

Same problem for me: [/path/to]/htrouter.phar is not a directory

borgogelli avatar Jan 04 '15 16:01 borgogelli

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

webdevilopers avatar Jan 19 '15 22:01 webdevilopers

ping @jaytaph ?

webdevilopers avatar Apr 03 '15 17:04 webdevilopers

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.

Psykoral avatar Apr 06 '15 21:04 Psykoral

I will give it a try @Psykoral . Maybe it is a problem when running the command for Symfony2 inside my NetBeansIDE too. I wil test! Thanks

webdevilopers avatar Apr 07 '15 07:04 webdevilopers