1

使用 MAC OS X Lion。最新版本 XAMPP。

我的问题:

Warning: require_once(/Users/test/workspace/Symfony/app/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php) [function.require-once]: failed to open stream: No such file or directory in /Users/test/workspace/Symfony/app/autoload.php on line 25

Fatal error: require_once() [function.require]: Failed opening required '/Users/test/workspace/Symfony/app/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Users/test/workspace/Symfony/app/autoload.php on line 25

配置:XAMPP:

<VirtualHost *:80>
ServerName sym.tolisto.de
ServerAdmin webmaster@localhost

DocumentRoot /Users/test/workspace/Symfony/web
<Directory /Users/test/workspace/Symfony/web>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ /app.php [QSA,L]
    </IfModule>
</Directory>

Symfony 1.4 有效。但是 Symfony2 不为什么?

使用 MAC OS X Lion。最新版本 XAMPP。

有什么建议么?

4

1 回答 1

2

首先运行 web/config.php 并检查 symfony2 框架是否一切正常

于 2012-07-10T08:55:59.233 回答