phalcon php built-in server Failed opening required .htrouter

穿精又带淫゛_ 提交于 2019-12-07 13:00:53

问题


Trying to run phalcon 2.0.7 app using built-in http server in php 5.6 and included .htrouter to make URI rewrite working. Everything seems find until I use die() in controller. For the first time it works as expected but when refreshed it throws PHP fatal error:

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required '.htrouter.php' (include_path='.:') in Unknown on line 0

Is there a way to fix that or should I start configuring other http server?


回答1:


I had the .htrouter in my public dir so this helped a lot:

php -S localhost:8000 -t public public/.htrouter.php :)


来源:https://stackoverflow.com/questions/32551795/phalcon-php-built-in-server-failed-opening-required-htrouter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!