<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Magento Expert</title>
	<atom:link href="https://www.the-mage-expert.com/tag/route/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Tue, 24 Jan 2023 09:37:24 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Getting the front name of a route programmatically</title>
		<link>https://www.the-mage-expert.com/58/magento-getting-frontname-of-route-programmatically/</link>
		<comments>https://www.the-mage-expert.com/58/magento-getting-frontname-of-route-programmatically/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:47:08 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[config.xml]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=58</guid>
		<description><![CDATA[Use the ollowing code to get a routes front name: [crayon-6a4db808c9246/] The code will return &#8220;config&#8221;, if you add the following XML to your modules config.xml: [crayon-6a4db808c92eb/]]]></description>
				<content:encoded><![CDATA[<p>Use the ollowing code to get a routes front name:</p>
<p></p><pre class="crayon-plain-tag">// will display &quot;config&quot;
$frontName = (string)Mage::getConfig()-&gt;getNode('frontend/routers/whatever/args/frontName');</pre><p></p>
<p>The code will return &#8220;config&#8221;, if you add the following XML to your modules config.xml:</p><pre class="crayon-plain-tag">&lt;frontend&gt;
        &lt;routers&gt;
            &lt;whatever&gt;
                &lt;use&gt;standard&lt;/use&gt;
                &lt;args&gt;
                    &lt;module&gt;Company_Module&lt;/module&gt;
                    &lt;frontName&gt;config&lt;/frontName&gt;
                &lt;/args&gt;
            &lt;/whatever&gt;
        &lt;/routers&gt;
&lt;/frontend&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/58/magento-getting-frontname-of-route-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
