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