错误信息如下
ParseException: Unable to parse at line 2 (near "resource:"@TestBundle/Resources/Config/routing.yml"").
文件内容是
Test:
resource:"@TestBundle/Resources/Config/routing.yml"
prefix: /
是@testbundle不识别还是什么问题?有谁知道吗 谢
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不识别还是什么问题?有谁知道吗 谢
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空格
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号