<?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 Routes</title>
	<atom:link href="http://webexpose.org/2007/05/09/cakephp-routes/feed/" rel="self" type="application/rss+xml" />
	<link>http://webexpose.org/2007/05/09/cakephp-routes/</link>
	<description>views from the changing web</description>
	<pubDate>Wed, 08 Sep 2010 01:30:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-74634</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 30 Sep 2009 17:18:47 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-74634</guid>
		<description>This is actually a very nice way of routing but I have to say I think that the pages_controller can become quite big.

Also an issue is that your views are always in /views/pages which is not nice also.

I'm thinking about a controller file that includes the right real controller as you normally would use in the full url,but than rewritten using this specific controller. In this case you also have views/[controllername] for your views, which is nice.

This can be done by routes, but you will end up with to many routes that I'm looking for a decent way like above.

Has anyone some idea's as I'm brainstorming and every time come back to all these routes which I don't want to have :)

Thanks.</description>
		<content:encoded><![CDATA[<p>This is actually a very nice way of routing but I have to say I think that the pages_controller can become quite big.</p>
<p>Also an issue is that your views are always in /views/pages which is not nice also.</p>
<p>I&#8217;m thinking about a controller file that includes the right real controller as you normally would use in the full url,but than rewritten using this specific controller. In this case you also have views/[controllername] for your views, which is nice.</p>
<p>This can be done by routes, but you will end up with to many routes that I&#8217;m looking for a decent way like above.</p>
<p>Has anyone some idea&#8217;s as I&#8217;m brainstorming and every time come back to all these routes which I don&#8217;t want to have <img src='http://webexpose.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V-TEK Channel: &#187; A call for cakephp favourite links</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-44859</link>
		<dc:creator>V-TEK Channel: &#187; A call for cakephp favourite links</dc:creator>
		<pubDate>Thu, 18 Dec 2008 11:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-44859</guid>
		<description>[...] http://webexpose.org/2007/05/09/cakephp-routes/ - Cake routes explained easily [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://webexpose.org/2007/05/09/cakephp-routes/" rel="nofollow">http://webexpose.org/2007/05/09/cakephp-routes/</a> - Cake routes explained easily [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamatha Pugh</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-37132</link>
		<dc:creator>Tamatha Pugh</dc:creator>
		<pubDate>Thu, 13 Nov 2008 04:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-37132</guid>
		<description>k39qjd5n39kkedj8</description>
		<content:encoded><![CDATA[<p>k39qjd5n39kkedj8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christher</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-10958</link>
		<dc:creator>Christher</dc:creator>
		<pubDate>Tue, 18 Dec 2007 10:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-10958</guid>
		<description>This works fine with one controller.

How should I do to make this work with two controllers?</description>
		<content:encoded><![CDATA[<p>This works fine with one controller.</p>
<p>How should I do to make this work with two controllers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christher</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-10956</link>
		<dc:creator>Christher</dc:creator>
		<pubDate>Tue, 18 Dec 2007 08:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-10956</guid>
		<description>This was nice. I have looked for a way todo this.

It not nice ti see the controller name in the url.</description>
		<content:encoded><![CDATA[<p>This was nice. I have looked for a way todo this.</p>
<p>It not nice ti see the controller name in the url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joren</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-8207</link>
		<dc:creator>joren</dc:creator>
		<pubDate>Sat, 18 Aug 2007 21:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-8207</guid>
		<description>thanks, you have saved me :P

works great, although the order of the routes are very important, so try them out</description>
		<content:encoded><![CDATA[<p>thanks, you have saved me <img src='http://webexpose.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>works great, although the order of the routes are very important, so try them out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-6633</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 18 Jul 2007 16:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-6633</guid>
		<description>Are you sure
'action' =&gt; ':action'

is what you want? Isn't that element for the default action?</description>
		<content:encoded><![CDATA[<p>Are you sure<br />
&#8216;action&#8217; =&gt; &#8216;:action&#8217;</p>
<p>is what you want? Isn&#8217;t that element for the default action?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-5600</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Tue, 26 Jun 2007 18:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-5600</guid>
		<description>Yeh, make a Page model - you could then use the `Page` table in your database and store pages (id, name, content) kind've thing.

Then,
$content = $this-&gt;Page-&gt;findByName('about');</description>
		<content:encoded><![CDATA[<p>Yeh, make a Page model - you could then use the `Page` table in your database and store pages (id, name, content) kind&#8217;ve thing.</p>
<p>Then,<br />
$content = $this->Page->findByName(&#8217;about&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-5531</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Mon, 25 Jun 2007 04:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-5531</guid>
		<description>Looks like I answered my own question.  It appears you can give the pages_controller a model and then do your logic in the respective methods.

I guess my question now is: Is this the right way to do this?  Seems kind of funky, but it does work.</description>
		<content:encoded><![CDATA[<p>Looks like I answered my own question.  It appears you can give the pages_controller a model and then do your logic in the respective methods.</p>
<p>I guess my question now is: Is this the right way to do this?  Seems kind of funky, but it does work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://webexpose.org/2007/05/09/cakephp-routes/comment-page-1/#comment-5520</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Mon, 25 Jun 2007 02:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://webexpose.org/2007/05/09/cakephp-routes/#comment-5520</guid>
		<description>Forgive me if this is a simple question, but how would I go about database interaction when doing this?  I would like to pull the info on the index/about/contact pages from the database, but I don't know how to give them a model when using this technique.  The pages controller says it has no model, so how would I go about this?  Thanks.</description>
		<content:encoded><![CDATA[<p>Forgive me if this is a simple question, but how would I go about database interaction when doing this?  I would like to pull the info on the index/about/contact pages from the database, but I don&#8217;t know how to give them a model when using this technique.  The pages controller says it has no model, so how would I go about this?  Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
