0

我从github下载了一个例子

https://github.com/azat/blog

我正在尝试在我的本地主机中实现这个示例,但它不起作用。它显示了诸如 bootstratp 和自动加载错误之类的错误。它显示以下错误。

( ! ) Warning: require_once(D:\wamp\www\blog-master\web/../app/bootstrap.php.
cache)[<a href='function.require-once'>function.require-once</a>]: 
failed to open stream: No such file or directory in D:\wamp\www\
blog-master\web\app.php on line 3
Call Stack
#   Time    Memory  Function    Location 
1   0.0009  368824  {main}( )   ..\app.php:0



( ! ) Fatal error: require_once() [<a href='function.require'>function.require</a>]:
Failed opening required 'D:\wamp\www\blog-master\web/../app/bootstrap.php.cache' 
(include_path='.;C:\php\pear') in D:\wamp\www\blog-master\web\app.php on line 3
Call Stack
#   Time    Memory  Function    Location
1   0.0009  368824  {main}( )   ..\app.php:0

请让我知道如何在本地主机中配置

4

1 回答 1

0

我想你忘了跑php bin/build.sh

该脚本将生成 bootstrap.cache ( bin/build_bootstrap.php) 并清理您的项目文件夹。

另外,请注意子模块!:) (build.sh运行前git submodule update --init --recursive

于 2013-02-19T11:19:59.450 回答