![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thinkphp
qq_35286031
这个作者很懒,什么都没留下…
展开
-
Thinkphp 同类方法调用 self
在同一个类下方法 Incoming public static function Incoming($links){//定义静态方法 Incoming $urlF = request()->url(true); //获取当前对象的完整URL,包括参数 if (!isset(parse_url($urlF)['query'])){ //用parse_url 把 $urlF解析成数组形式,并获取数组“query”中值;isset() 函数用于检测变量是否已设置并且非 NU原创 2020-11-19 15:33:18 · 773 阅读 · 0 评论 -
thinkphp 如何取消路径中的index.php
官方说的使用以下规则: <IfModulemod_rewrite.c> Options+FollowSymlinks-Multiviews RewriteEngineon RewriteCond%{REQUEST_FILENAME}!-d RewriteCond%{REQUEST_FILENAME}!-f RewriteRule^(.*)$index.php?/$1[QSA,PT,L] </IfModule> ...原创 2020-10-09 14:19:24 · 386 阅读 · 0 评论