Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

2 votes

Magento 2.4.x: How to pass custom variable from controller to phtml file?

Why would you want to use a registry ? Is there a reason beyond this ? You need to pass variables threw controller and block depending on how the templates is defined. For example : Template ...
user avatar
  • 772

Only top scored, non community-wiki answers of a minimum length are eligible