1

Hi Here I called magento newsletter subscription block in to my phtml file. but after hitting submit its redirected to same page but no any messages are showing. how to add success or failure message. I added loggers in vendor controllers but they are not logging.

vendor/magento/module-newsletter/Controller/Subscriber

this is my custom phtml file

 echo $this->getLayout()
      ->createBlock('Magento\Newsletter\Block\Subscribe')
      ->setTemplate('Magento_Newsletter::subscribe.phtml')   
      ->toHtml();

Where am doing wrong? Can I get help? Thank you in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.