Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/03/2015, 06:29
dawivan
 
Fecha de Ingreso: marzo-2015
Mensajes: 29
Antigüedad: 9 años, 1 mes
Puntos: 0
Cannot import resource from ".../app/config\routing.yml"?AYUDA

Hola buenas, acabo de comenzar un tuto de symfony 2, y al crear un bundle nuevo y su controlador y tenerlo todo listo, me aparecen los siguientes errores:

[1/2]InvalidArgumentException: Yaml routing loader does not support given key: "path". Expected one of the (type, resource, prefix, pattern, options, defaults, requirements).

[2/2]FileLoaderLoadException: Cannot import resource "C:\wamp\www\symfony2\src\Acme\HelloBundle/Resources/config/routing.yml" from "C:/wamp/www/symfony2/app/config\routing.yml".

Mis ficheros tal cual estan asi:

routing de app:

acme_hello:
resource: "@AcmeHelloBundle/Resources/config/routing.yml"
prefix: /

routing de mi bundle:

acme_hello_homepage:
pattern: /hello/{name}
defaults: { _controller: AcmeHelloBundle:Default:index }
hello:
path: /hello/{name}
defaults: { _controller: AcmeHelloBundle:Hello:index }