<?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: How to Maintain Simple, Static Pages in CakePHP</title>
	<atom:link href="http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/</link>
	<description></description>
	<lastBuildDate>Sat, 28 May 2011 01:01:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: al</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-291</link>
		<dc:creator>al</dc:creator>
		<pubDate>Wed, 11 May 2011 18:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-291</guid>
		<description>helpful, thanks</description>
		<content:encoded><![CDATA[<p>helpful, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam S</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-253</link>
		<dc:creator>Sam S</dc:creator>
		<pubDate>Fri, 01 Apr 2011 17:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-253</guid>
		<description>@T0aD - the model is StaticPage to be consistent with its corssesponding controller and cause not conflicts with the existing pages controller.

I am working on a Page MVC that has the display method for static template serving and view for db based page content

I am using a number of cakedc plugins with it

this article of great interest, thanks for posting</description>
		<content:encoded><![CDATA[<p>@T0aD &#8211; the model is StaticPage to be consistent with its corssesponding controller and cause not conflicts with the existing pages controller.</p>
<p>I am working on a Page MVC that has the display method for static template serving and view for db based page content</p>
<p>I am using a number of cakedc plugins with it</p>
<p>this article of great interest, thanks for posting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T0aD</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-251</link>
		<dc:creator>T0aD</dc:creator>
		<pubDate>Mon, 13 Dec 2010 00:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-251</guid>
		<description>I&#039;m still wondering why this model is called StaticPage</description>
		<content:encoded><![CDATA[<p>I&#8217;m still wondering why this model is called StaticPage</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-243</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Wed, 08 Sep 2010 18:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-243</guid>
		<description>An easy way to get better URL&#039;s (/about, /contact, etc. instead of /pages/about, /pages/contact, etc.) is set up proper routing in your CakePHP app.

At the very bottom, simply insert this into /config/routes.php:

Router::connect(&#039;/*&#039;, array(&#039;controller&#039; =&gt; &#039;pages&#039;, &#039;action&#039; =&gt; &#039;display&#039;));

Then, every template you create in /views/pages will display automatically at /(name). This route is placed at the very bottom as a &quot;catch-all&quot; -- if no other routes are defined for a particular URL, it gets routed to the built-in Pages controller.</description>
		<content:encoded><![CDATA[<p>An easy way to get better URL&#8217;s (/about, /contact, etc. instead of /pages/about, /pages/contact, etc.) is set up proper routing in your CakePHP app.</p>
<p>At the very bottom, simply insert this into /config/routes.php:</p>
<p>Router::connect(&#8216;/*&#8217;, array(&#8216;controller&#8217; =&gt; &#8216;pages&#8217;, &#8216;action&#8217; =&gt; &#8216;display&#8217;));</p>
<p>Then, every template you create in /views/pages will display automatically at /(name). This route is placed at the very bottom as a &#8220;catch-all&#8221; &#8212; if no other routes are defined for a particular URL, it gets routed to the built-in Pages controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dam</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-223</link>
		<dc:creator>Dam</dc:creator>
		<pubDate>Wed, 28 Oct 2009 13:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-223</guid>
		<description>Hi ,

How can i show the controller page, with out giving the DB info int he database.php 

means i need to run the controller mypage method photos 

www.example.com/mypage/photos

without giving Db info how can i run</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>How can i show the controller page, with out giving the DB info int he database.php </p>
<p>means i need to run the controller mypage method photos </p>
<p><a href="http://www.example.com/mypage/photos" rel="nofollow">http://www.example.com/mypage/photos</a></p>
<p>without giving Db info how can i run</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-222</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Fri, 23 Oct 2009 16:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-222</guid>
		<description>Hey Jeff, there&#039;s no need to code a custom controller for static pages if you want a hierarchy. The pages_controller supports this feature. As far as making the content dynamic, that&#039;s a fair enough reason.

You also claim that the URLs look unprofessional, and yet you use the Router in your code. Somewhat confusing. Router would solve your ugly URL problem. Pages wasn&#039;t designed for dynamic content, so any bashing of it therein is somewhat irrelivant.

Components are a far simpler way to allow updateable content on a static template.</description>
		<content:encoded><![CDATA[<p>Hey Jeff, there&#8217;s no need to code a custom controller for static pages if you want a hierarchy. The pages_controller supports this feature. As far as making the content dynamic, that&#8217;s a fair enough reason.</p>
<p>You also claim that the URLs look unprofessional, and yet you use the Router in your code. Somewhat confusing. Router would solve your ugly URL problem. Pages wasn&#8217;t designed for dynamic content, so any bashing of it therein is somewhat irrelivant.</p>
<p>Components are a far simpler way to allow updateable content on a static template.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-221</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 27 Sep 2009 16:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-221</guid>
		<description>Thanks for clearing this out, this is as you also have seen very helpfull.

Are you willing to add the pagenames and paths to above the pagecode ? This would be nice for a lot of people I think !

Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Thanks for clearing this out, this is as you also have seen very helpfull.</p>
<p>Are you willing to add the pagenames and paths to above the pagecode ? This would be nice for a lot of people I think !</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murraybiscuit</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-219</link>
		<dc:creator>murraybiscuit</dc:creator>
		<pubDate>Fri, 11 Sep 2009 13:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-219</guid>
		<description>i would also add seo keywords and description to the static_pages table.</description>
		<content:encoded><![CDATA[<p>i would also add seo keywords and description to the static_pages table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murraybiscuit</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-218</link>
		<dc:creator>murraybiscuit</dc:creator>
		<pubDate>Fri, 11 Sep 2009 12:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-218</guid>
		<description>thanks for this article. i&#039;ve recently started working in cake and having some teething problems. particularly with this issue. i like this approach - it&#039;s very similar to a cms i&#039;ve built before.</description>
		<content:encoded><![CDATA[<p>thanks for this article. i&#8217;ve recently started working in cake and having some teething problems. particularly with this issue. i like this approach &#8211; it&#8217;s very similar to a cms i&#8217;ve built before.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-217</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 28 Jul 2009 20:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-217</guid>
		<description>@Matt: I have very limited experience with behaviors in Cake; I&#039;ve rarely used them in the past. I don&#039;t presently know of a workaround, but if I get the chance to try and reproduce the problem I&#039;ll see if I can find one.</description>
		<content:encoded><![CDATA[<p>@Matt: I have very limited experience with behaviors in Cake; I&#8217;ve rarely used them in the past. I don&#8217;t presently know of a workaround, but if I get the chance to try and reproduce the problem I&#8217;ll see if I can find one.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

