随笔分类 - ThinkPhp5
摘要:1、从github下载PHPMailer,在vendor目录中新建文件夹phpmailer,将压缩包中的class.phpmailer.php和class.smtp.php复制到phpmailer中,更改class.phpmailer.php文件名为phpmailer.php 2、在两个文件顶部加上
阅读全文
摘要:1、fetchSql用于直接返回SQL而不是执行查询,适用于任何的CURD操作方法。 例如:$result = Db::table('think_user')->fetchSql(true)->find(1);输出result结果为: SELECT * FROM think_user where i
阅读全文