问答详情
源自:3-3 编写一个Hello Word页面

@Route("/hi/{name}")

annotation @Route 这个为什么报错了那?

No route found for "GET /hi/aeee"

404 Not Found - NotFoundHttpException

1 linked Exception: 

ResourceNotFoundException 

--------------------------------------------

用原生的就可以返回!

------------------------------------------

http://demo.symfony.com/web/app_dev.php/hello/aeee

提问者:fnnfb 2015-01-13 17:43

个回答

  • 慕容8142097
    2015-06-13 15:51:45

    我的也报错  大神求解

  • fnnfb
    2015-01-13 17:55:49

    好吧,已解决  :  app/config/routing.yml  对项目包声明  type:annotation

  • fnnfb
    2015-01-13 17:45:41

    apache 开启了  rewrite 模块

  • fnnfb
    2015-01-13 17:44:57

    php -v  5.5.12   安装了  opcache