This is my first work with Symfony 2. All I am trying to do here is whenever the user clicks on the submit button he will go to another page.
But my index page isn't loading. They are saying there is something wrong with my routing file, specifically:
A YAML file cannot contain tabs as indentation
I don't know what I have done wrong. Here is my routing file.
community_online_shop_homepage:
pattern: /
defaults: { _controller: CommunityOnlineShopBundle:Page:index }
_login:
pattern: /login
defaults: { _controller: CommunityOnlineShopBundle:Page:login}
解决方案
A YAML file use spaces as indentation, you can use 2 or 4 spaces for indentation, but no tab. In other words, tab indentation is forbidden:
Why does YAML forbid tabs?
Tabs have been outlawed since they are treated differently by diffe