<?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: Friendly URLs and the Zend Router</title>
	<atom:link href="http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/feed" rel="self" type="application/rss+xml" />
	<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31</link>
	<description>thoughts and ideas from a .net developer</description>
	<lastBuildDate>Sun, 29 Jan 2012 18:18: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: Creating a JSON-RPC service using Zend Json Server</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-7105</link>
		<dc:creator>Creating a JSON-RPC service using Zend Json Server</dc:creator>
		<pubDate>Sat, 08 Jan 2011 12:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-7105</guid>
		<description>[...] Friendly URLs and the Zend [...]</description>
		<content:encoded><![CDATA[<p>[...] Friendly URLs and the Zend [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petan</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-4155</link>
		<dc:creator>Petan</dc:creator>
		<pubDate>Wed, 16 Jun 2010 12:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-4155</guid>
		<description>I got in bootstrap this (insted of $frontController-&gt;getRouter()):

$config = new Zend_Config_Ini(APPLICATION_PATH . &#039;/configs/routes.ini&#039;, &#039;routes&#039;);
$router = Zend_Controller_Front::getInstance()-&gt;getRouter();
$router-&gt;addConfig($config, &#039;routes&#039;);</description>
		<content:encoded><![CDATA[<p>I got in bootstrap this (insted of $frontController-&gt;getRouter()):</p>
<p>$config = new Zend_Config_Ini(APPLICATION_PATH . &#8216;/configs/routes.ini&#8217;, &#8216;routes&#8217;);<br />
$router = Zend_Controller_Front::getInstance()-&gt;getRouter();<br />
$router-&gt;addConfig($config, &#8216;routes&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-3005</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 14 Feb 2010 23:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-3005</guid>
		<description>@Vishal What version of Zend Framework are you using? The default way of bootstrapping an zend application has changed some since I wrote the post.</description>
		<content:encoded><![CDATA[<p>@Vishal What version of Zend Framework are you using? The default way of bootstrapping an zend application has changed some since I wrote the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-2885</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Wed, 03 Feb 2010 14:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-2885</guid>
		<description>I have made the changes as you have mentioned ..

1&gt;I created a routes.ini file and put in my config folder
2&gt;In my bootstrap file i have added the code as mentioned in your blog.

Then when i try to run my code for that particular link...
i am not getting the url friendly urls..


For your help...

-----------------My routes.ini-----------------------------
routes.popular.route = popular/:type
routes.popular.defaults.controller = order
routes.popular.defaults.action = index
routes.popular.defaults.type = myorder
routes.popular.reqs.type = \w+
routes.popular.reqs.page = \d+
routes.popular.reqs.sortOrder = \w+
-----------------------------------------------------


-------------------Bootstrap.php-----------------------

	$config1 = new Zend_Config_Ini( APP_PATH .DIRECTORY_SEPARATOR . &#039;/config/routes.ini&#039; );
	
$router1 = $front-&gt;getRouter();
$router1-&gt;addConfig($config1,&#039;routes&#039;);
------------------------------------------------------------


Please help...

Do i need to make changes in any other place as well..like in the corresponding action.....

Thanks
Vishal</description>
		<content:encoded><![CDATA[<p>I have made the changes as you have mentioned ..</p>
<p>1&gt;I created a routes.ini file and put in my config folder<br />
2&gt;In my bootstrap file i have added the code as mentioned in your blog.</p>
<p>Then when i try to run my code for that particular link&#8230;<br />
i am not getting the url friendly urls..</p>
<p>For your help&#8230;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;My routes.ini&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
routes.popular.route = popular/:type<br />
routes.popular.defaults.controller = order<br />
routes.popular.defaults.action = index<br />
routes.popular.defaults.type = myorder<br />
routes.popular.reqs.type = \w+<br />
routes.popular.reqs.page = \d+<br />
routes.popular.reqs.sortOrder = \w+<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-Bootstrap.php&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>	$config1 = new Zend_Config_Ini( APP_PATH .DIRECTORY_SEPARATOR . &#8216;/config/routes.ini&#8217; );</p>
<p>$router1 = $front-&gt;getRouter();<br />
$router1-&gt;addConfig($config1,&#8217;routes&#8217;);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Please help&#8230;</p>
<p>Do i need to make changes in any other place as well..like in the corresponding action&#8230;..</p>
<p>Thanks<br />
Vishal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Martin</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-2579</link>
		<dc:creator>Andrew Martin</dc:creator>
		<pubDate>Wed, 30 Dec 2009 18:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-2579</guid>
		<description>A very concise and configurable method, thanks!</description>
		<content:encoded><![CDATA[<p>A very concise and configurable method, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deerawan</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-2049</link>
		<dc:creator>deerawan</dc:creator>
		<pubDate>Fri, 13 Nov 2009 04:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-2049</guid>
		<description>I also use Zend Router to make my url more friendly</description>
		<content:encoded><![CDATA[<p>I also use Zend Router to make my url more friendly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://sourcecodebean.com/archives/friendly-urls-and-the-zend-router/31/comment-page-1#comment-886</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Thu, 18 Jun 2009 15:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://sourcecodebean.com/?p=31#comment-886</guid>
		<description>Good tks. It would be good to tell people where does $frontController comes from (Zend_Controller_From::getinstance()). Some people don&#039;t know that.</description>
		<content:encoded><![CDATA[<p>Good tks. It would be good to tell people where does $frontController comes from (Zend_Controller_From::getinstance()). Some people don&#8217;t know that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: sourcecodebean.com @ 2012-02-06 07:08:01 -->
