随笔分类 -  ThinkPhp5

摘要:1、从github下载PHPMailer,在vendor目录中新建文件夹phpmailer,将压缩包中的class.phpmailer.php和class.smtp.php复制到phpmailer中,更改class.phpmailer.php文件名为phpmailer.php 2、在两个文件顶部加上 阅读全文
posted @ 2017-11-06 16:30 郁冬 阅读(765) 评论(0) 推荐(0) 编辑
摘要:1、fetchSql用于直接返回SQL而不是执行查询,适用于任何的CURD操作方法。 例如:$result = Db::table('think_user')->fetchSql(true)->find(1);输出result结果为: SELECT * FROM think_user where i 阅读全文
posted @ 2017-07-20 16:47 郁冬 阅读(242) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示