search
top

Adminhtml Frontname in Magento

I am writing here a code snipet for fetching the name (alias) used to access admin end, which is set to ‘admin’ by default

<?php 
echo Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
?>

Below code for creating an admin URL

<?php
	$hlpr = Mage::helper("adminhtml");
	$params = array('v'=>1,'pv'=>2);	
	echo $url = $hlpr->getUrl('*/sales_order/',$params);
?>

One Response to “Adminhtml Frontname in Magento”

  1. Homendra says:

    Thanks,

    It’s working for me.

Leave a Reply

top