Bonjour,
Je suis en train d'essayer de faire un hello world avec synfony 2 :
j'ai l'erreure suivante :
FileLoaderLoadException: Cannot import resource "C:\wamp\www\Symfony\src\pillowface\BlogBundle/Resources/config/routing.yml" from "C:/wamp/www/Symfony/app/config\routing.yml". (A YAML file cannot contain tabs as indentation at line 4 (near " ").)
et
ParseException: A YAML file cannot contain tabs as indentation at line 4 (near " ").
ci dessus le code. J'ai bien mis quatres espaces à la place des tabulations. Je ne comprend pas.
Code yml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 pillowface_blog_homepage: pattern: /hello/{name} defaults: { _controller: pillowfaceBlogBundle:Default:index } HelloTheWorld: path:/hello-world defaults:{ _controller:pillowfaceBlogBundle:Blog:index }
Merci d'avance
Partager