红鲤鱼与绿鲤鱼与驴
- 红鲤鱼与绿鲤鱼与驴 回答了问题 最后登录时间显示的实现方式
写一个方法把 最后登录的时间 跟当前登录的时间做比较,显示据上次登录时间差多少
- 红鲤鱼与绿鲤鱼与驴 2016-08-09 已签到连续签到14天,获得了20个金钱
- 红鲤鱼与绿鲤鱼与驴 2016-08-08 已签到连续签到13天,获得了20个金钱
- 红鲤鱼与绿鲤鱼与驴 2016-08-07 已签到连续签到12天,获得了20个金钱
- 红鲤鱼与绿鲤鱼与驴 2016-08-06 已签到连续签到11天,获得了20个金钱
你把第一个 [['phone', 'password'], 'required'],去除 就能显示你自定义的提示信息了
public function rules() { return [ ['username1', 'required',, 'message' => '不能为空'], ['username2', 'required',, 'message' => '不能为空'] ]; }