<?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: CakePHP: Prettier URLs for Plugins</title>
	<atom:link href="http://jamienay.com/2009/05/cakephp-prettier-urls-for-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamienay.com/2009/05/cakephp-prettier-urls-for-plugins/</link>
	<description>A PHP web developer writing about the web.</description>
	<lastBuildDate>Sun, 29 Aug 2010 15:08:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jamie</title>
		<link>http://jamienay.com/2009/05/cakephp-prettier-urls-for-plugins/comment-page-1/#comment-959</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 04 Jun 2009 18:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=146#comment-959</guid>
		<description>Great tip! Thanks for pointing that out, I missed that second bullet point in the book. I would&#039;ve approved your comment sooner, but for whatever reason WP didn&#039;t send me email notification and I haven&#039;t logged in for a few days. :)

Your suggestion works well for simple plugins that only have one controller, since you can just give the controller the same name as the plugin. But if you have more than one controller, things get a little sticky.</description>
		<content:encoded><![CDATA[<p>Great tip! Thanks for pointing that out, I missed that second bullet point in the book. I would&#8217;ve approved your comment sooner, but for whatever reason WP didn&#8217;t send me email notification and I haven&#8217;t logged in for a few days. <img src='http://jamienay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Your suggestion works well for simple plugins that only have one controller, since you can just give the controller the same name as the plugin. But if you have more than one controller, things get a little sticky.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deizel.</title>
		<link>http://jamienay.com/2009/05/cakephp-prettier-urls-for-plugins/comment-page-1/#comment-799</link>
		<dc:creator>deizel.</dc:creator>
		<pubDate>Fri, 29 May 2009 14:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=146#comment-799</guid>
		<description>While not always a solution, it is possible to have Cake automagically hide the plugin&#039;s name in the URL by having the your plugin and plugin&#039;s controller both share the same name.

So using your example above:

http://mydomain.com/calendar/calendar_events/view

.. if we rename the plugin to `calendar_events`, the url becomes:

http://mydomain.com/calendar_events/view

.. or, if we rename the controller to `calendar`, the url becomes:

http://mydomain.com/calendar/view

See the second bullet point here: http://book.cakephp.org/view/119/Plugin-Tips

:)</description>
		<content:encoded><![CDATA[<p>While not always a solution, it is possible to have Cake automagically hide the plugin&#8217;s name in the URL by having the your plugin and plugin&#8217;s controller both share the same name.</p>
<p>So using your example above:</p>
<p><a href="http://mydomain.com/calendar/calendar_events/view" rel="nofollow">http://mydomain.com/calendar/calendar_events/view</a></p>
<p>.. if we rename the plugin to `calendar_events`, the url becomes:</p>
<p><a href="http://mydomain.com/calendar_events/view" rel="nofollow">http://mydomain.com/calendar_events/view</a></p>
<p>.. or, if we rename the controller to `calendar`, the url becomes:</p>
<p><a href="http://mydomain.com/calendar/view" rel="nofollow">http://mydomain.com/calendar/view</a></p>
<p>See the second bullet point here: <a href="http://book.cakephp.org/view/119/Plugin-Tips" rel="nofollow">http://book.cakephp.org/view/119/Plugin-Tips</a></p>
<p> <img src='http://jamienay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
