我将我的网站托管到一个新域。当我点击一些链接时,url 重定向到索引页面并出现此错误。
PHP fatal error – yii\base\ErrorException
调用未定义的方法 app\models\TblAccount::findIdentity()
此错误是否与 session 有关。请给我解决问题的方法。
最佳答案
从错误来看,您似乎没有在 TblAccount 类中实现 findIdentity() 方法。 IdentityInterface 要求您实现它 - see documentation
向我们展示您的代码,以便我们提供更多帮助
关于php - 在 yii2 中调用未定义的方法 Error findIdentity(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33207557/