Last active
December 24, 2015 14:49
-
-
Save anunay/6815899 to your computer and use it in GitHub Desktop.
Magento: Homepage Check V2
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 | |
if($this->getUrl('') == $this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true))): | |
echo "Homepage"; | |
else: | |
echo "Not in Homepage"; | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment