PHP [routing problem]
小可耐
小可耐 2020-02-12 12:15:15
0
2
1182

Routing of tp and laravel

Domain name/directory/parameter/parameter/parameter

And it can only be /

How to pass parameters like ordinary parameters

Domain name/directory?id=1&name=lisa

How to write this kind of interface

http://localhost/directory?s=parameter

That’s it Omit the file name and directly access it using the directory with parameters (the description here is not index.php, this can be omitted, I know)

小可耐
小可耐

reply all(2)
小可耐

https://baike.baidu***/item/QQ/111306?ivk_sa=1022817p Then you add /index.php https://baike.baidu***/item/QQ/111306/index.php?ivk_sa=1022817p Obviously, it cannot be opened, which proves that it is not the index but is hidden.

小可耐

How to write it, please help... Just like Baidu’s https://baike.baidu***/item/QQ/111306?ivk_sa=1022817p You can see that 111306 is a directory, and the real file is omitted.

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