<?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: Setting the page title</title>
	<atom:link href="http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Wed, 28 Jul 2010 19:06:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-102406</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 11 Aug 2008 14:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-102406</guid>
		<description>@Matti: Yes, in most cases it is the right thing to set the title in the view.</description>
		<content:encoded><![CDATA[<p>@Matti: Yes, in most cases it is the right thing to set the title in the view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matti Putkonen</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-102093</link>
		<dc:creator>Matti Putkonen</dc:creator>
		<pubDate>Sun, 10 Aug 2008 01:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-102093</guid>
		<description>I would say setting the title in view is the right thing to do. The title of the view does not concern the controller.</description>
		<content:encoded><![CDATA[<p>I would say setting the title in view is the right thing to do. The title of the view does not concern the controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-92376</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 02 Jun 2008 15:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-92376</guid>
		<description>@Anupom: Yes, I agree with you, it&#039;s not obvious that there is a special handling for &quot;title&quot;. See also my answer to Anonymous.</description>
		<content:encoded><![CDATA[<p>@Anupom: Yes, I agree with you, it&#8217;s not obvious that there is a special handling for &#8220;title&#8221;. See also my answer to Anonymous.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anupom</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-92101</link>
		<dc:creator>Anupom</dc:creator>
		<pubDate>Sun, 01 Jun 2008 04:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-92101</guid>
		<description>Well, I was really confused and thought it&#039;s a bug when I found the fact that setting view variable as &#039;title&#039; actually changes the title of the page. Like, as Wouter mentioned,
$this-&gt;set(’title’, ‘nice title’); works with $title_for_layout;

I think it&#039;s unnecessary. There are already few different ways of setting the page title. Why do we need this then? :&#039;(</description>
		<content:encoded><![CDATA[<p>Well, I was really confused and thought it&#8217;s a bug when I found the fact that setting view variable as &#8216;title&#8217; actually changes the title of the page. Like, as Wouter mentioned,<br />
$this-&gt;set(’title’, ‘nice title’); works with $title_for_layout;</p>
<p>I think it&#8217;s unnecessary. There are already few different ways of setting the page title. Why do we need this then? :&#8217;(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-91726</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 29 May 2008 15:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-91726</guid>
		<description>@all: Thanks for your comments!

@Wouter: Thanks for your hint, I wasn&#039;t aware that &quot;title&quot; is treated differently.

@Anonymous: I agree with you, it would be better if there would be only one way to set a title. And instead of the special handling of &quot;title&quot; it would be more logical to use &quot;title_for_layout&quot;, so that you have to use the same name in the controller and the layout.</description>
		<content:encoded><![CDATA[<p>@all: Thanks for your comments!</p>
<p>@Wouter: Thanks for your hint, I wasn&#8217;t aware that &#8220;title&#8221; is treated differently.</p>
<p>@Anonymous: I agree with you, it would be better if there would be only one way to set a title. And instead of the special handling of &#8220;title&#8221; it would be more logical to use &#8220;title_for_layout&#8221;, so that you have to use the same name in the controller and the layout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-91680</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 29 May 2008 05:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-91680</guid>
		<description>3 distinct ways to set titles is stupid.  The special handling of &#039;title&#039; in View::set() should go away -- why not pull pageTitle out of viewVars?

blech.</description>
		<content:encoded><![CDATA[<p>3 distinct ways to set titles is stupid.  The special handling of &#8216;title&#8217; in View::set() should go away &#8212; why not pull pageTitle out of viewVars?</p>
<p>blech.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter de Boer</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-91609</link>
		<dc:creator>Wouter de Boer</dc:creator>
		<pubDate>Wed, 28 May 2008 13:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-91609</guid>
		<description>Another method $this-&gt;set(&#039;title&#039;, &#039;nice title&#039;); works with $title_for_layout; but confusing if you&#039;ve a (blog??)title in your content.</description>
		<content:encoded><![CDATA[<p>Another method $this-&gt;set(&#8216;title&#8217;, &#8216;nice title&#8217;); works with $title_for_layout; but confusing if you&#8217;ve a (blog??)title in your content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dr. Hannibal Lecter</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-91608</link>
		<dc:creator>dr. Hannibal Lecter</dc:creator>
		<pubDate>Wed, 28 May 2008 13:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-91608</guid>
		<description>I do the same as John Reeves, as the page title seems a part of the view. I do combine it though, in the layout, with the site name variable in my configuration.</description>
		<content:encoded><![CDATA[<p>I do the same as John Reeves, as the page title seems a part of the view. I do combine it though, in the layout, with the site name variable in my configuration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bret Kuhns</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-91598</link>
		<dc:creator>Bret Kuhns</dc:creator>
		<pubDate>Wed, 28 May 2008 12:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-91598</guid>
		<description>I like Sosa&#039;s idea and never even thought you&#039;d be able to do that. I assumed since the head/title portion of the layout comes before the page view, setting the title in the view wouldn&#039;t work. I guess I should&#039;ve just tried it to see what happens. Thanks for pointing this out guys :)</description>
		<content:encoded><![CDATA[<p>I like Sosa&#8217;s idea and never even thought you&#8217;d be able to do that. I assumed since the head/title portion of the layout comes before the page view, setting the title in the view wouldn&#8217;t work. I guess I should&#8217;ve just tried it to see what happens. Thanks for pointing this out guys :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Reeves</title>
		<link>http://cakebaker.42dh.com/2008/05/28/setting-the-page-title/comment-page-1/#comment-91592</link>
		<dc:creator>John Reeves</dc:creator>
		<pubDate>Wed, 28 May 2008 10:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=607#comment-91592</guid>
		<description>I&#039;ve always been under the impression that the  tag was part of the &quot;View&quot; logic and therefore I set it at the top of the .ctp file before any other HTML.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always been under the impression that the  tag was part of the &#8220;View&#8221; logic and therefore I set it at the top of the .ctp file before any other HTML.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
