Working with Magento registry


/ Published in: PHP
Save to your folder(s)

Use Mage::register() to add an entry into registry, Mage::registry() to retrieve data and Mage::unregister() to delete registry entry.


Copy this code and paste it in your HTML
  1. Mage::register('name_of_entry', $object);
  2. Mage::registry('name_of_entry');
  3. Mage::unregister('name_of_entry');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.