thinkphp多表联查的几种方法

例如我要查询的原生sql语句为:select a.*,b.* from user as a left join userinfo as b on a.id=b.uidthinkphp里面可以写为:$result = M('user')->table('user as a')->join('userinfo as b ...

阅读全文

IIS7下thinkphp如何去掉入口文件index.php?

官网给出的是apache下的方法,例如去掉下面url中的index.phphttp://192.168.1.98/index.php/Home/Index/View<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1&nb...

阅读全文

thinkphp结合云之讯做短信验证码

thinkphp结合云之讯做短信验证码先去云之讯注册账号网址http://www.ucpaas.com/注册云之讯平台账号,即可免费获得10元测试费用测试够用啦解压附件到ThinkPHP\Library\Org文件中新建方法public function send(){        //初始化必填        $options['accountsid&...

阅读全文