Magento – are you in the adminhtml ?

To know if you are in the adminhtml or in another store, you can simply do :

if(Mage::app()->getStore()->isAdmin()){
  //I'm in the admin
}

Leave a Reply