dingjj2010
- dingjj2010 2018-04-03 已签到连续签到2天,获得了10个金钱
- dingjj2010 2018-04-02 已签到连续签到1天,获得了5个金钱
- dingjj2010 2018-03-29 已签到连续签到4天,获得了20个金钱
if ($this->cookieValidationKey == '') { throw new InvalidConfigException(get_class($this) . '::cookieValidationKey must be configured with a secret key.'); }
查了原因,是
cookieValidationKey
为空的情况才报错, 如果设置好的情况还这样, 那就是配置文件,配置有问题.可以检查一下.- dingjj2010 2018-03-28 已签到连续签到3天,获得了15个金钱
- dingjj2010 2018-03-27 已签到连续签到2天,获得了10个金钱
- dingjj2010 2018-03-26 已签到连续签到1天,获得了5个金钱
1: rules里面有个内容叫 场景(scenario),区分不同的场景验证不同的字段. 例如insert场景,update场景
2: 修改的时候,正常情况下, 把修改账户,邮箱和修改密码分开做2个修改页面
3: 如果要实现unique, 在unique规则下, 可传参数fiter, 就和where一样, 把非当前记录id(!id)当做条件.
详见:http://www.yiichina.com/doc/guide/2.0/tutorial-core-validators#unique- dingjj2010 2018-03-23 已签到连续签到1天,获得了5个金钱
- dingjj2010 2018-03-21 已签到连续签到3天,获得了15个金钱