Skip to content

Instantly share code, notes, and snippets.

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

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