作者:杀手也热血_949 | 来源:互联网 | 2018-05-24 03:10
错误信息如下ParseException:Unabletoparseatline2(near"resource:"@TestBundleResourcesConfigrouting.yml"").文件内容是Test:resource:"@TestBundleResourcesConfigrouting.yml"prefix:...
错误信息如下
ParseException: Unable to parse at line 2 (near "resource:"@TestBundle/Resources/Config/routing.yml"").
文件内容是
Test:
resource:"@TestBundle/Resources/Config/routing.yml"
prefix: /
是@TestBundle不识别还是什么问题?有谁知道吗 谢
demo/test/Resources/Config/routing.yml的内容是
Test_homepage:
path: /Test/Test/demo
defaults: { _controller: TestBundle:TestController:index}
错误是 无法解析...//Symfony2.4.3/app/config/routing_dev.yml
回复内容:
错误信息如下
ParseException: Unable to parse at line 2 (near "resource:"@TestBundle/Resources/Config/routing.yml"").
文件内容是
Test:
resource:"@TestBundle/Resources/Config/routing.yml"
prefix: /
是@TestBundle不识别还是什么问题?有谁知道吗 谢
demo/test/Resources/Config/routing.yml的内容是
Test_homepage:
path: /Test/Test/demo
defaults: { _controller: TestBundle:TestController:index}
错误是 无法解析...//Symfony2.4.3/app/config/routing_dev.yml
你在写routing.yml文件的时候,
Test:
(这里)resource:"@TestBundle/Resources/Config/routing.yml"
(这里)prefix: /
是用tab开头空格还是用空格键空格? routing.yml不支持开头tab空格