Symfony2: No route found for “GET /lucky/number”

后端 未结 11 1238
北荒
北荒 2021-02-18 14:17

I start the tutorial (as newbie) and everythings works fine till:

http://symfony.com/doc/current/book/page_creation.html#creating-a-page-route-and-controller at step

11条回答
  •  太阳男子
    2021-02-18 14:56

    In case someone else runs into this problem: for me the problem was twofold:

    1. i forgot to assign a namespace namespace AppBundle\Controller;
    2. i didn't add a use statement for the template use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

提交回复
热议问题