这家伙有点懒,还没写个性签名!
我只想查出某个客户的订单,怎么写?
$url = \yii\helpers\Url::toRoute('catalog/list'); return $this->redirect($url);
完美解决问题。
那个不会根据url规则自动转格式?
谢谢!!!!
从头理,一步一步找问题。save方法在为新纪录时insert在不是新纪录时update Note that it is possible the update does not affect any row in the table. In this case, this method will return 0. 返回1就代表已经成功。 检查是否是更新对了地方...
从头理,一步一步找问题。save方法在为新纪录时insert在不是新纪录时update
Note that it is possible the update does not affect any row in the table. In this case, this method will return 0.
返回1就代表已经成功。 检查是否是更新对了地方...
yii-admin 在修改用户密码时有一个错误,把oldpassword转成newpassword 就可以了
print_r($user); //此处对比一下数据库的数据 if ($user->save()) { return true; }
你好,原密码为111111,修改为555555后,数据库里有变化的,但再次登陆时,还是111111有效。
如果我没有猜错的话,你还不懂技术 那先学HTML+PHP吧 学完后自然就知道流程了。 会了建站再来学YII吧。 现在就上YII,很容易失去信心。