Wednesday 6 August 2014

Check page is home page or not in Joomla

This is the code which you have to write in files where you want to check for Joomla home page

$menu = & JSite::getMenu();
if ($menu->getActive()   == $menu->getDefault()) {
   echo "Home page";
} else {
   echo "Other page";
}

No comments:

Post a Comment

List OF BANK PAN Numbers

List OF BANK PAN Numbers Bank/Home Loan Providers PAN Number Allahabad Bank AACCA8464F Andhra Bank AABCA7375C Axis Bank...