Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 magento 的本地验证码用于自定义页面,如此链接所示。但它只在用户未登录时显示。但我也想为登录用户显示 magento 的原生验证码。有没有办法做到这一点?
您是否尝试过手动将验证码添加到模板中?不通过布局方法?
echo $this->getLayout()->createBlock('captcha/captcha') ->setFormId('module_unique') ->setImgWidht(230) ->setImgHeight(50) ->toHtml();
如该链接中所述,您还需要加载 mage/captcha.js 才能使其工作。