tp3.1.2 Routing (pseudo-static) configuration is invalid, crashes in solution

Source: Internet
Author: User
tp3.1.2 Routing (pseudo-static) configuration is invalid, crashes
This post was last edited by Xiongmzh on 2014-01-15 11:08:59

Config.php under:

' Load_ext_config ' = ' routes ',
' Url_html_suffix ' = ' HTML ',

Routes.php under:

Return Array (
' url_router_on ' = true,
' Url_route_rules ' = Array (
' A/b/:id ' = '/api/verify/:1 ',
),
);

But when I visit xxx.com/a/b/1.html, error: Unable to load module: a

Help

Share to: more


------Solution--------------------
Visit XXX.COM/A/B/1 this? It should be okay.
------Solution--------------------
Determine if your a controller file exists? And does the a controller name satisfy the camel style?
------Solution--------------------
Try xxx.com/index.php/a/b/1.html.
------Solution--------------------
Write it in the config.php.
' Url_router_on ' =>true,
' Url_route_rules ' =>array (
'/^index$/' = ' home/index/index ',
'/^admin$/' = ' admin/index/index ',
)

If a separate grouping is used to write to the outermost public config.php
  • 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.