Created
October 2, 2013 09:47
-
-
Save wcodex/6791401 to your computer and use it in GitHub Desktop.
How to check for Magento Home Page
This file contains hidden or 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
if($this->getUrl('') == $this->getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true))): | |
echo "This is magento home page"; | |
else | |
echo "Oops this is not home page,sorry"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment