我按照这里的教程 ( http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html ) 关于使用 FOSRestBundle。
设置路线时,出现错误:
Cannot import resource "D:\xampp\htdocs\SymRestTestApp\src\Per\RestBundle/Resources/config/routing.yml" from "D:/xampp/htdocs/SymRestTestApp/app/config\routing.yml".
我的 app/config/routing.yml
per_rest:
resource: "@PerRestBundle/Controller"
type: annotation
prefix: /
per:
type: rest
resource: "@PerRestBundle/Resources/config/routing.yml"
我的 Per/RestBundle/Resources/config/routing.yml:
organisation:
type: rest
resource: Per\RestBundle\Controller\OrganisationController
user:
type: rest
parent: organisation
resource: Per\RestBundle\Controller\UserController
有人遇到过这个问题吗?如何修复此错误?