thinkPHPd-Routing-Einstellungen
风起时丶丶想你
风起时丶丶想你 2018-10-15 11:57:05
0
2
1018

http://localhost:90/ThinkPHP2/index.php/Admin/Login/login

Beim Zugriff in der obigen Form sind das CSS oder andere in PHP eingeführte Pfade nicht mehr vorhanden.

http://localhost:90/ThinkPHP2/index.php?s=/Admin/Login/login

Wenn dies der Fall ist, wird der Stilpfad korrekt angezeigt. So lösen Sie das Problem (mithilfe des ersten Methode garantiert auch Korrekt)


风起时丶丶想你
风起时丶丶想你

Antworte allen(1)
风起时丶丶想你

已经解决,页面中引入文件一般使用(./)代表根目录,(../)代表上一级,但是这里不行,会认为http://localhost:90/ThinkPHP2/index.php?s=/Admin/Login/login这个是项目路径导致页面中当前项目路径出错。用__ROOT_为绝对路径就没有问题了

  • Antwort 纠正一下(./)是当前目录;(/) 才是根目录;
    Summer Autor 2018-10-16 09:38:24
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!