<?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>Thu, 25 Mar 2010 12:45:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<item>
		<title>By: Matt</title>
		<link>http://jefflinse.com/2009/how-to-maintain-simple-static-pages-in-a-cakephp-application/comment-page-1/#comment-215</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 06 Jul 2009 16:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://jefflinse.com/?p=60#comment-215</guid>
		<description>Hi, thanks for this tutorial.

I have used this as the basis for a small project I am working on.  I have noticed that after I import the StaticPage model in bootstrap.php in the StaticPage controller the StaticPage model loses any behaviours that are set in it&#039;s class file.  I&#039;ve tried to use the code below instead as a way of importing the Static Page model:

App::import(&#039;Core&#039;,&#039;ClassRegistry&#039;);
$post = ClassRegistry::init(&#039;StaticPage&#039;);

It doesn&#039;t seem to make any difference though and in StaticPage Controller I have to resort to using:

public function beforeFilter()
    {
      if(!$this-&gt;Post-&gt;Behaviors-&gt;enabled(&#039;Tree&#039;))
      {
        $this-&gt;Post-&gt;Behaviors-&gt;attach(&#039;Tree&#039;, array(&#039;left&#039; =&gt; &#039;left&#039;, &#039;right&#039; =&gt; &#039;right&#039;));
        $this-&gt;Post-&gt;Behaviors-&gt;enable(&#039;Tree&#039;);
      }
    }

It&#039;d be great if you have any suggestions on how to get round this problem.

Thanks again,

Matt</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this tutorial.</p>
<p>I have used this as the basis for a small project I am working on.  I have noticed that after I import the StaticPage model in bootstrap.php in the StaticPage controller the StaticPage model loses any behaviours that are set in it&#8217;s class file.  I&#8217;ve tried to use the code below instead as a way of importing the Static Page model:</p>
<p>App::import(&#8216;Core&#8217;,'ClassRegistry&#8217;);<br />
$post = ClassRegistry::init(&#8216;StaticPage&#8217;);</p>
<p>It doesn&#8217;t seem to make any difference though and in StaticPage Controller I have to resort to using:</p>
<p>public function beforeFilter()<br />
    {<br />
      if(!$this-&gt;Post-&gt;Behaviors-&gt;enabled(&#8216;Tree&#8217;))<br />
      {<br />
        $this-&gt;Post-&gt;Behaviors-&gt;attach(&#8216;Tree&#8217;, array(&#8216;left&#8217; =&gt; &#8216;left&#8217;, &#8216;right&#8217; =&gt; &#8216;right&#8217;));<br />
        $this-&gt;Post-&gt;Behaviors-&gt;enable(&#8216;Tree&#8217;);<br />
      }<br />
    }</p>
<p>It&#8217;d be great if you have any suggestions on how to get round this problem.</p>
<p>Thanks again,</p>
<p>Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
