I have create an extension which used frontend as well as admin end.
My config code is below.
<frontend>
<routers>
<testimonial>
<use>standard</use>
<args>
<module>Magentohelper_Testimonial</module>
<frontName>testimonial</frontName>
</args>
</testimonial>
</routers>
<layout>
<updates>
<testimonial>
<file>testimonial.xml</file>
</testimonial>
</updates>
</layout>
</frontend>
<admin>
<routers>
<testimonial>
<use>admin</use>
<args>
<module>Magentohelper_Testimonial</module>
<frontName>testimonial_admin</frontName>
</args>
</testimonial>
</routers>
</admin>
When i Call
Mage::getUrl('testimonial/index/check/');from my phtml file, It Returns the admin url which is
testimonial_admin/index/check/
From the magento wiki i got the instruction to create extension, which says this

I guess the router is matching the admin Url first.
How can i get the url of my frontend using
Mage::getUrl
function.?
<frontName>[module]</frontName>
while you are adding_admin
also, so you have to add the_admin
under routers tag as well – MTM Aug 30 '14 at 13:29