<?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 Your Page Layout in CakePHP</title>
	<atom:link href="http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/</link>
	<description></description>
	<lastBuildDate>Sun, 27 Jun 2010 00:00:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: How to create custom layout for your website in CakePHP &#171; Myles Kadusale&#8217;s Blog</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-2578</link>
		<dc:creator>How to create custom layout for your website in CakePHP &#171; Myles Kadusale&#8217;s Blog</dc:creator>
		<pubDate>Thu, 14 May 2009 10:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-2578</guid>
		<description>[...] Other links related Reformatting the default layout Setting up the page layout [...]</description>
		<content:encoded><![CDATA[<p>[...] Other links related Reformatting the default layout Setting up the page layout [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mzee.richo</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-314</link>
		<dc:creator>mzee.richo</dc:creator>
		<pubDate>Fri, 24 Oct 2008 11:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-314</guid>
		<description>Nice stuff . You kids  or guys are very bright . i was having issues with stuff . nice stuff</description>
		<content:encoded><![CDATA[<p>Nice stuff . You kids  or guys are very bright . i was having issues with stuff . nice stuff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rachel</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-303</link>
		<dc:creator>rachel</dc:creator>
		<pubDate>Sat, 11 Oct 2008 14:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-303</guid>
		<description>@Kiran, you set variables in layout just like how you do it in any views file. So for this instance, you can use the 

$cats[&#039;cats&#039;][&#039;name&#039;] = &#039;whatever here&#039;;
$this-&gt;set(&#039;cats&#039;, $cats) 

to send any info in your default.ctp and display it in the layout like

&lt;?=$cats[&#039;cats&#039;][&#039;name&#039;] ?&gt;</description>
		<content:encoded><![CDATA[<p>@Kiran, you set variables in layout just like how you do it in any views file. So for this instance, you can use the </p>
<p>$cats['cats']['name'] = &#8216;whatever here&#8217;;<br />
$this->set(&#8216;cats&#8217;, $cats) </p>
<p>to send any info in your default.ctp and display it in the layout like</p>
<p>&lt;?=$cats['cats']['name'] ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kiran</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-302</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Sat, 11 Oct 2008 12:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-302</guid>
		<description>hi i have to send an array containing category and brand names to my layout file - default.ctp. My html -  section has some javasript code. I want to place content from above array into that js. like - mm_menu = &quot;location:&lt;?=cats[&#039;cats&#039;][&#039;name&#039;]&quot;. is it possible? how do i do it?</description>
		<content:encoded><![CDATA[<p>hi i have to send an array containing category and brand names to my layout file &#8211; default.ctp. My html &#8211;  section has some javasript code. I want to place content from above array into that js. like &#8211; mm_menu = &#8220;location:&lt;?=cats['cats']['name']&#8220;. is it possible? how do i do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smart Pad</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-54</link>
		<dc:creator>Smart Pad</dc:creator>
		<pubDate>Mon, 04 Aug 2008 07:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-54</guid>
		<description>To ajk, I think the title can be set in your controller by the following;

$this-&gt;set(&#039;title&#039;, &#039;your page title&#039;);</description>
		<content:encoded><![CDATA[<p>To ajk, I think the title can be set in your controller by the following;</p>
<p>$this-&gt;set(&#8216;title&#8217;, &#8216;your page title&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyrose</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-42</link>
		<dc:creator>cyrose</dc:creator>
		<pubDate>Tue, 22 Jul 2008 01:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-42</guid>
		<description>Hi ajk,

About your question, $title_for_layout will get the filename of your views files minus the &quot;.ctp&quot; and will use it as your title. This is true if your views files are located inside app/views/pages folder. But if you have created your own folder inside views, say app/views/registers, the name of the folder will now be the page title for all views files inside app/views/registers.

However, if you wish to customize your title, you can do that using $pageTitle controller variable. You will put it on your controller file. To show what I mean, here&#039;s a sample code:

 class RegistersController extends AppController {
  	var $name = &#039;Registers&#039;;
	
	function index() {
  		$this-&gt;pageTitle = &#039;Manage Admin Panel&#039;;
  		$this-&gt;checkSession(); 
	} 

So now, if you will open the page say url/registers/index on your browser, the tilte bar will show &#039;Manage Admin Panel&#039;.

Thanks,
Cyrose</description>
		<content:encoded><![CDATA[<p>Hi ajk,</p>
<p>About your question, $title_for_layout will get the filename of your views files minus the &#8220;.ctp&#8221; and will use it as your title. This is true if your views files are located inside app/views/pages folder. But if you have created your own folder inside views, say app/views/registers, the name of the folder will now be the page title for all views files inside app/views/registers.</p>
<p>However, if you wish to customize your title, you can do that using $pageTitle controller variable. You will put it on your controller file. To show what I mean, here&#8217;s a sample code:</p>
<p> class RegistersController extends AppController {<br />
  	var $name = &#8216;Registers&#8217;;</p>
<p>	function index() {<br />
  		$this->pageTitle = &#8216;Manage Admin Panel&#8217;;<br />
  		$this->checkSession();<br />
	} </p>
<p>So now, if you will open the page say url/registers/index on your browser, the tilte bar will show &#8216;Manage Admin Panel&#8217;.</p>
<p>Thanks,<br />
Cyrose</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajk</title>
		<link>http://cakephp.prometsupport.com/2008/setting-your-page-layout-in-cakephp/comment-page-1/#comment-41</link>
		<dc:creator>ajk</dc:creator>
		<pubDate>Mon, 21 Jul 2008 12:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://cakephp.prometsupport.com/2008/07/21/setting-your-page-layout-in-cakephp/#comment-41</guid>
		<description>where do you save the definitions variables ($title_for_layout)?</description>
		<content:encoded><![CDATA[<p>where do you save the definitions variables ($title_for_layout)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
