我目前正在制作主页上的登录表单。 但在每次无效尝试后,消息都没有显示在适当的位置
即 帐户信息中心和忘记密码页中显示“无效的电子邮件和密码”消息。
答案 0 :(得分:0)
这意味着您忘记在模板中调用群组消息阻止
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
答案 1 :(得分:0)
我在模板中添加了以下行,它可以正常运行:
<?php $message1=Mage::app()->getLayout()->getMessagesBlock()
->setMessages(Mage::getSingleton('customer/session')
->getMessages(true))->getGroupedHtml() ; ?>
感谢您的帮助。
答案 2 :(得分:0)
这意味着您忘记在模板中调用消息阻止。添加此代码,它的工作对我来说
<?php echo $this->getMessagesBlock()->toHtml() ?>