Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PHP 5.4 Dereferencing with an array for a helper
$__ = array(Mage::helper('yourcompany/helper'), '__');
echo $__('Translate me');

This comment has been minimized.

Copy link
Owner Author

@philwinkle philwinkle commented Aug 26, 2014

This method courtesy of @unknownbrackets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment