SymFony2. The manually configured bundle reports the Unabletoparse error.

Source: Internet
Author: User
The error message is as follows: ParseException: Unabletoparseatline2 (near & quot; resource: & quot; @ TestBundleResourcesConfigrouting. yml & quot ;). the file content is Test: resource: & quot; @ TestBundleResourcesConfigrouting. yml & quot; prefix :... the error message is as follows:
ParseException: Unable to parse at line 2 (near "resource:" @ TestBundle/Resources/Config/routing. yml "").

The file content is
Test:
Resource: "@ TestBundle/Resources/Config/routing. yml"
Prefix :/

Is @ TestBundle not recognized or is it a problem? Does anyone know? Thank you.

The demo/test/Resources/Config/routing. yml content is

Test_homepage:
Path:/Test/demo
Defaults: {_ controller: TestBundle: TestController: index}

The error is that the file cannot be parsed. // Symfony2.4.3/app/config/routing_dev.yml.

Reply content:

The error message is as follows:
ParseException: Unable to parse at line 2 (near "resource:" @ TestBundle/Resources/Config/routing. yml "").

The file content is
Test:
Resource: "@ TestBundle/Resources/Config/routing. yml"
Prefix :/

Is @ TestBundle not recognized or is it a problem? Does anyone know? Thank you.

The demo/test/Resources/Config/routing. yml content is

Test_homepage:
Path:/Test/demo
Defaults: {_ controller: TestBundle: TestController: index}

The error is that the file cannot be parsed. // Symfony2.4.3/app/config/routing_dev.yml.

When you write the routing. yml file,
Test:
(Here) resource: "@ TestBundle/Resources/Config/routing. yml"
(Here) prefix :/
Does it start with a tab or use a Space key? Routing. yml does not support leading tab Spaces

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.