Tag Archives: controller

How to get Current Page URL, Module, Controller and Action Name, CMS Page URL and Current Skin URL in Magento

<?php

Mage::app()->getFrontController()->getRequest()->getModuleName();  //Get Current Module Name
Mage::getSingleton(‘cms/page’)->getIdentifier();  // Get Current CMS page
Mage::app()->getFrontController()->getRequest()->getRouteName();  // Get Route Name
Mage::getSingleton(‘cms/page’)->getIdentifier();  // Get Identifier Name

Mage::getDesign()->getSkinUrl(); // Get Current Skin URL
?>