php - 在 Magento 1.9 的 forgotPasswordPost 方法中使用时,loadByEmail() 没有获取客户详细信息?
问题描述
我尝试了 3 种不同的方法,但没有一种方法有效。我在文件中的代码是 -
$customer = $this->_getModel('customer/customer')
->setWebsiteId(Mage::app()->getStore()->getWebsiteId())
->loadByEmail($email);
它什么也不返回。
请就此提出一些解决方案。
解决方案
推荐阅读
- javascript - 使用 JavaScript 的一组数组元素中的 GroupBy(基于标题的动态输入的简单分组方法)
- c# - 在easymodbus RTU c#中更改从站ID后恢复连接
- reactjs - React 类组件设置状态,出现“=”符号解析错误
- hyperledger-fabric - 在 hyperledger fabric 2.0 中,是否可以在两个不同的通道中创建和部署链码,每个通道包含不同的组织?
- c++ - 为什么运算符重载 == 不起作用?
- ios - GCD:URLSession 下载任务
- jestjs - monorepo 中项目的 jest coverageDirectory 配置
- lua - Lua错误:有人可以帮助我解决middleclass.lua的路径吗?
- sql-server - SQL Server :: Microsoft Access 查询中数据类型的隐式转换?
- sql - 行之间的 SQL 差异