Thursday, 6 October 2016

$installer = $this; in install scripts

Installer script funs with context of setup resource class,

Mage_Core_Model_Resource_Setup

So it menace $this is reference to object instantiated from this class. While its not necessary to have this alias, but its nothing but the convention. It's always better to follow best practices with for convention. 

No comments:

Post a Comment