mage-snippet

Get Frontend Blocks/Templates from Adminhtml using setArea

There may come a time when you want to get a frontend template from an admin function – possibly some form of shared observer function – normally you wouldn’t be able to grab the file because Magento will instinctively look inside it’s own area (adminhtml) for the template file. You can change this by using the setArea function.