SymFony2, manually configured bundle report unable to parse error

Source: Internet
Author: User
Tags parse error
The error message is as follows
Parseexception:unable to parse on line 2 (near "resource:" @TestBundle/resources/config/routing.yml ").

File content is
Test:
Resource: "@TestBundle/resources/config/routing.yml"
Prefix:/

is @testbundle not recognized or what is the problem? Does anybody know that, Xie?

The content of DEMO/TEST/RESOURCES/CONFIG/ROUTING.YML is

Test_homepage:
Path:/test/test/demo
Defaults: {_controller:testbundle:testcontroller:index}

Error is unresolved ...//symfony2.4.3/app/config/routing_dev.yml

Reply content:

The error message is as follows
Parseexception:unable to parse on line 2 (near "resource:" @TestBundle/resources/config/routing.yml ").

File content is
Test:
Resource: "@TestBundle/resources/config/routing.yml"
Prefix:/

is @testbundle not recognized or what is the problem? Does anybody know that, Xie?

The content of DEMO/TEST/RESOURCES/CONFIG/ROUTING.YML is

Test_homepage:
Path:/test/test/demo
Defaults: {_controller:testbundle:testcontroller:index}

Error is unresolved ...//symfony2.4.3/app/config/routing_dev.yml

When you were writing the Routing.yml file,
Test:
(here) resource: "@TestBundle/resources/config/routing.yml"
(here) Prefix:/
Do you use the tab to start a space or a space key? ROUTING.YML does not support opening tab spaces

  • Related Article

    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.