<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Chaining routes in Zend Framework</title>
	<atom:link href="http://robertbasic.com/blog/chaining-routes-in-zend-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertbasic.com/blog/chaining-routes-in-zend-framework/</link>
	<description>the magic of coding...</description>
	<lastBuildDate>Sun, 08 Jan 2012 19:22:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Federico</title>
		<link>http://robertbasic.com/blog/chaining-routes-in-zend-framework/#comment-3404</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Thu, 03 Dec 2009 11:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://robertbasic.com/blog/?p=816#comment-3404</guid>
		<description>Hi Robert, 

There are a couple of reasons why I avoid chaining routes. 

1. There&#039;s no added value having global configuration values in the URL path (e.g. lang). The best thing to do is to define these values in a separate configuration file.

2. Most frameworks are not very flexible when it comes to URL mapping, and there&#039;s a good reason for that, routes give developers a good understanding of the system and speeds up the development time. If you have 40+ routes, the URL mapping configuration file becomes very difficult to understand and maintain. 

3. It doesn&#039;t allow you to customize the mapping process. 

4. And, last but not least, just because it&#039;s there doesn&#039;t mean you have to use it :)</description>
		<content:encoded><![CDATA[<p>Hi Robert, </p>
<p>There are a couple of reasons why I avoid chaining routes. </p>
<p>1. There&#8217;s no added value having global configuration values in the URL path (e.g. lang). The best thing to do is to define these values in a separate configuration file.</p>
<p>2. Most frameworks are not very flexible when it comes to URL mapping, and there&#8217;s a good reason for that, routes give developers a good understanding of the system and speeds up the development time. If you have 40+ routes, the URL mapping configuration file becomes very difficult to understand and maintain. </p>
<p>3. It doesn&#8217;t allow you to customize the mapping process. </p>
<p>4. And, last but not least, just because it&#8217;s there doesn&#8217;t mean you have to use it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://robertbasic.com/blog/chaining-routes-in-zend-framework/#comment-3403</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 02 Dec 2009 07:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://robertbasic.com/blog/?p=816#comment-3403</guid>
		<description>Hey there Mr. Exception :)

Oh, right, I skipped that part. I add it, so that when you visit / you get the /index/index/lang/en, not just /index/index, and when you visit something like /de, you don&#039;t get a missing controller error.</description>
		<content:encoded><![CDATA[<p>Hey there Mr. Exception :)</p>
<p>Oh, right, I skipped that part. I add it, so that when you visit / you get the /index/index/lang/en, not just /index/index, and when you visit something like /de, you don&#8217;t get a missing controller error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Exception e</title>
		<link>http://robertbasic.com/blog/chaining-routes-in-zend-framework/#comment-3401</link>
		<dc:creator>Exception e</dc:creator>
		<pubDate>Tue, 01 Dec 2009 11:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://robertbasic.com/blog/?p=816#comment-3401</guid>
		<description>Hey,

it is unclear why you add  $langroute too:
    $router-&gt;addRoute(&#039;langRoute&#039;, $langRoute);  


      «For what chains are for, is described in the manual, so I won’t be covering that :P»
The manual doesn&#039;t do a good job on this, but your example makes it more clear.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>it is unclear why you add  $langroute too:<br />
    $router-&gt;addRoute(&#8216;langRoute&#8217;, $langRoute);  </p>
<p>      «For what chains are for, is described in the manual, so I won’t be covering that :P»<br />
The manual doesn&#8217;t do a good job on this, but your example makes it more clear.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

