Routing not working in Symfony 3.4

前端 未结 4 2051
盖世英雄少女心
盖世英雄少女心 2021-01-18 22:03

I have created a new Symfony 3.4 project using:

composer create-project symfony/skeleton my-project

After that I added the following compo

4条回答
  •  庸人自扰
    2021-01-18 22:42

    Did you load your Bundle "App" in the AppKernel.php ? There is a Array where you musst Open Add the AppBundle.php of your Bundle.

    $bundles = [
    /**lot of other bundles*//
    new App\AppBundle() 
    ]
    

    It musst look Like this

提交回复
热议问题