摘要: dz密码加密 md5(md5(密码字段),$sale) 阅读全文
posted @ 2021-04-02 17:41 why_set 阅读(123) 评论(0) 推荐(0)
摘要: common/config/web.php 配置文件 ‘urlManager’ //路由重写 ‘layoutPath’ //自动载入页面 'models' //模型别名 阅读全文
posted @ 2021-04-02 17:40 why_set 阅读(44) 评论(0) 推荐(0)
摘要: 控制器 前置action public function actionIndex(){ } 阅读全文
posted @ 2021-04-02 17:36 why_set 阅读(52) 评论(0) 推荐(0)
摘要: 模型保存数据 $model->title='标题'//赋值 $model->save() 修改数据 $model::updateAll([修改字段],[条件]); 查询数据 $model->find()->where()->andWhere()->one();//查询一条数据可以跟多个条件 $mod 阅读全文
posted @ 2021-04-02 17:35 why_set 阅读(174) 评论(0) 推荐(0)
摘要: save保存时会自动给update_time, stat_time赋值时间戳 阅读全文
posted @ 2021-04-02 17:30 why_set 阅读(133) 评论(0) 推荐(0)
摘要: 模型添加 fields 添加模型字段 删除模型字段敏感词 修改模型字段名称 调用 $model->toarray(); 阅读全文
posted @ 2021-04-02 17:29 why_set 阅读(177) 评论(0) 推荐(0)