相关疑难解决方法(0)

Symfony2 - 捆绑包的致命错误

我有错误[问题末尾的解决方案]

Fatal error: Class 'symblog\Blogger\BlogBundle\SymblogBundle' not found in
/var/www/Symfony/app/AppKernel.php on line 20
Run Code Online (Sandbox Code Playgroud)

在Symfony2中创建了如何安装或集成软件包的问题,但是给出的解决方案对我没有帮助,因为我已经做了那里的建议.我正在遵循教程symblog.co.uk,除了我创建的

app/config/routing.yml
Run Code Online (Sandbox Code Playgroud)

一个

*.php resource
Run Code Online (Sandbox Code Playgroud)

提前致谢!

我必须补充说,在通过控制台注册捆绑包时,我得到了错误

The command was not able to configure everything automatically.
You must do the following changes manually.
Run Code Online (Sandbox Code Playgroud)

和说明:

- Edit the app/autoload.php file and register the bundle
namespace at the top of the registerNamespaces() call:
'symblog\Blogger\BlogBundle' => '/var/www/Symfony/blog',
Run Code Online (Sandbox Code Playgroud)

我跟着他.

AppKernel.php

class AppKernel extends Kernel
{
public function registerBundles()
{
    $bundles = array(
        //..
        new symblog\Blogger\BlogBundle\SymblogBundle(),
    ); …
Run Code Online (Sandbox Code Playgroud)

php bundle symfony

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

bundle ×1

php ×1

symfony ×1