php - tp5 how to implement a url like this
ringa_lee
ringa_lee 2017-05-16 13:17:01
0
2
705

In tp5, the general URL is like this

/article/id/5.html
or
/article/5.html

How to implement the following format
/article_id_5.html
/article_5.html

If written directly in the routing, it will prompt that the module does not exist

ringa_lee
ringa_lee

ringa_lee

reply all(2)
PHPzhong

In the configuration file config.php, in the URL setting section, there is a pathinfo_depr parameter configuration. The default is "/". You can just change it to the "_" you need.

習慣沉默

"URL_PATHINFO_DEPR"=>"-" Add this to the configuration item

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template