<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ZEE4 &#187; simcoedining</title>
	<atom:link href="http://zee4.com/tag/simcoedining/feed/" rel="self" type="application/rss+xml" />
	<link>http://zee4.com</link>
	<description>Zoltan Hunt, web-designer and developer in Toronto, Canada</description>
	<lastBuildDate>Sun, 09 Oct 2011 21:06:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Adding robots meta-tag to a CakePHP view</title>
		<link>http://zee4.com/2009/11/adding-robots-meta-tag-to-cakephp-view/</link>
		<comments>http://zee4.com/2009/11/adding-robots-meta-tag-to-cakephp-view/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:51:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[simcoedining]]></category>

		<guid isPermaLink="false">http://zee4.com/2009/11/adding-robots-meta-tag-to-cakephp-view/</guid>
		<description><![CDATA[Here&#8217;s a little how-to I discovered a few months ago while I was working on SimcoeDining.com and realized that Google was indexing a whole lot of mostly blank pages. To solve this, I figured I&#8217;d better put a no-index on &#8230; <a href="http://zee4.com/2009/11/adding-robots-meta-tag-to-cakephp-view/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little how-to I discovered a few months ago while I was working on SimcoeDining.com and realized that Google was indexing a whole lot of mostly blank pages.</p>
<p>To solve this, I figured I&#8217;d better put a no-index on those pages fast; after mucking around with CakePHP&#8217;s html->meta handler (because I wanted the meta tag in the header where it belonged) and not finding anything, I came up with:</p>
<div class="geshi no php">
<ol>
<li class="li1">
<div class="de1"><span class="re1">$html</span><span class="sy0">-&gt;</span><span class="me1">meta</span><span class="br0">&#40;</span><span class="st0">&#39;robots&#39;</span><span class="sy0">,</span> <span class="kw2">null</span><span class="sy0">,</span> <span class="kw3">array</span><span class="br0">&#40;</span><span class="st0">&#39;name&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;robots&#39;</span><span class="sy0">,</span> <span class="st0">&#39;content&#39;</span> <span class="sy0">=&gt;</span> <span class="st0">&#39;noindex&#39;</span><span class="br0">&#41;</span> <span class="sy0">,</span><span class="kw2">false</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
</ol>
</div>
<p>BTW: The pages where empty at the time because there wasn&#8217;t a lot of data in the system, so a lot of searches where coming up empty- that&#8217;s been &#8220;fixed&#8221; now too.</p>
<p>Hopefully this saves someone else 20 minutes <img src='http://zee4.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://zee4.com/2009/11/adding-robots-meta-tag-to-cakephp-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

