Created
August 26, 2014 17:39
-
-
Save philwinkle/fd3d153b27f7b6da9992 to your computer and use it in GitHub Desktop.
PHP 5.4 Dereferencing with an array for a helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$__ = array(Mage::helper('yourcompany/helper'), '__'); | |
//usage | |
echo $__('Translate me'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This method courtesy of @unknownbrackets