<?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: HABTM / Checkbox working example</title>
	<atom:link href="http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/</link>
	<description>Flipflops.org is about web development and fairly conceptual art</description>
	<lastBuildDate>Wed, 25 Aug 2010 07:48:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/comment-page-1/#comment-6969</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Wed, 12 Sep 2007 13:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/#comment-6969</guid>
		<description>Hi Dean

Are you using 1.2? 

Having said that - been meaning to look at this all again - there are instances when it does error.</description>
		<content:encoded><![CDATA[<p>Hi Dean</p>
<p>Are you using 1.2? </p>
<p>Having said that &#8211; been meaning to look at this all again &#8211; there are instances when it does error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/comment-page-1/#comment-6968</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Wed, 12 Sep 2007 13:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/#comment-6968</guid>
		<description>Hi Pinholecam

Thanks for pointing that out. I hope it is something I would notice now, but when I was doing this some of the finer points of model associations were just lost on me.</description>
		<content:encoded><![CDATA[<p>Hi Pinholecam</p>
<p>Thanks for pointing that out. I hope it is something I would notice now, but when I was doing this some of the finer points of model associations were just lost on me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinholecam</title>
		<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/comment-page-1/#comment-6784</link>
		<dc:creator>Pinholecam</dc:creator>
		<pubDate>Tue, 28 Aug 2007 13:42:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/#comment-6784</guid>
		<description>I think that I&#039;m so late here, but if you can read this maybe I can help you a bit.

I&#039;m also a new Cake developer. Now working on a News Helper.

You said:
Changed ‘tag’ to ‘name’ in ‘tags’ - I changed this because generateList was not working and the $tags array geneated for the view did not contain the tag name ‘tag’ - only the ‘tag_id’ value.

Well, you don&#039;t have to do it. In the tag&#039;s model, add that line:
//just under var $name = &#039;Tag&#039;;
var $displayField = &#039;name&#039;;

Then, in the generateList, you&#039;ll get the name instead the id.

Sorry for my inglish and hope I help...</description>
		<content:encoded><![CDATA[<p>I think that I&#8217;m so late here, but if you can read this maybe I can help you a bit.</p>
<p>I&#8217;m also a new Cake developer. Now working on a News Helper.</p>
<p>You said:<br />
Changed ‘tag’ to ‘name’ in ‘tags’ &#8211; I changed this because generateList was not working and the $tags array geneated for the view did not contain the tag name ‘tag’ &#8211; only the ‘tag_id’ value.</p>
<p>Well, you don&#8217;t have to do it. In the tag&#8217;s model, add that line:<br />
//just under var $name = &#8216;Tag&#8217;;<br />
var $displayField = &#8216;name&#8217;;</p>
<p>Then, in the generateList, you&#8217;ll get the name instead the id.</p>
<p>Sorry for my inglish and hope I help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/comment-page-1/#comment-6774</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Mon, 27 Aug 2007 13:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/#comment-6774</guid>
		<description>Also, I found that you now have to declare variables a little more carefully. So there are a couple of places where I had to change:

$this-&gt;set(&#039;selectedTags&#039;, null);

to

$this-&gt;set(&#039;selectedTags&#039;, array());

or you get an error that habtm is getting the wrong datatype in the second position...</description>
		<content:encoded><![CDATA[<p>Also, I found that you now have to declare variables a little more carefully. So there are a couple of places where I had to change:</p>
<p>$this-&gt;set(&#8217;selectedTags&#8217;, null);</p>
<p>to</p>
<p>$this-&gt;set(&#8217;selectedTags&#8217;, array());</p>
<p>or you get an error that habtm is getting the wrong datatype in the second position&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/comment-page-1/#comment-6745</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Fri, 24 Aug 2007 09:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/#comment-6745</guid>
		<description>Hi

Glad it&#039;s been of use. I had a quick thought that it could be something along the lines of not having  copied / modified your the tags.ini.php to /app/config/ from /cake/config/... but I don&#039;t think that is it on reflection.

Sometimes it is really hard to figure out what is going on I guess because the framework is so big.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Glad it&#8217;s been of use. I had a quick thought that it could be something along the lines of not having  copied / modified your the tags.ini.php to /app/config/ from /cake/config/&#8230; but I don&#8217;t think that is it on reflection.</p>
<p>Sometimes it is really hard to figure out what is going on I guess because the framework is so big.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean</title>
		<link>http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/comment-page-1/#comment-6743</link>
		<dc:creator>Dean</dc:creator>
		<pubDate>Fri, 24 Aug 2007 03:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/04/05/habtm-checkbox-working-example/#comment-6743</guid>
		<description>Thanks!! It is really hard to piece together this stuff from the website. I get one error

Warning: file_put_contents(e:\apache\habtm\tmp\cache\models\default_tags) [function.file-put-contents]: failed to open stream: No such file or directory in E:\apache\cake\basics.php on line 935

but this could be a config issue on my side. Otherwise, it works great. Thanks!

Dean</description>
		<content:encoded><![CDATA[<p>Thanks!! It is really hard to piece together this stuff from the website. I get one error</p>
<p>Warning: file_put_contents(e:\apache\habtm\tmp\cache\models\default_tags) [function.file-put-contents]: failed to open stream: No such file or directory in E:\apache\cake\basics.php on line 935</p>
<p>but this could be a config issue on my side. Otherwise, it works great. Thanks!</p>
<p>Dean</p>
]]></content:encoded>
	</item>
</channel>
</rss>
