phalcon php内置服务器无法打开所需的。htrouter

phalcon php内置服务器无法打开所需的。htrouter,php,phalcon,php-builtin-server,Php,Phalcon,Php Builtin Server,尝试使用PHP5.6和include.htrouter中的内置http服务器运行phalcon 2.0.7应用程序,以使URI重写工作正常。在控制器中使用die()之前,一切似乎都找到了。它第一次按预期工作,但刷新时抛出PHP致命错误: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening requi

尝试使用PHP5.6和include.htrouter中的内置http服务器运行phalcon 2.0.7应用程序,以使URI重写工作正常。在控制器中使用
die()
之前,一切似乎都找到了。它第一次按预期工作,但刷新时抛出PHP致命错误:

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

有没有办法解决这个问题,或者我应该开始配置其他http服务器?

我的public dir中有.htrouter,所以这很有帮助:

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

我用这个做了测试&它工作得非常好。您的
.htrouter.php
是否有正确的代码?没有更改任何内容,由phalcon开发工具创建的项目您创建并使用了哪种类型的proeject?(micro、simple、multi)无论默认值是什么,我猜它是simpleOk,您的
.htrouter.php
是否具有
.php
扩展名?&其内容是否与主单据相同?