<?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: Many to Many with Zend_Form and Zend_Db</title>
	<atom:link href="http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/</link>
	<description>free Zend Framework screencasts. Video tutorials to get you up to speed with different parts of the Zend Framework and enterprise PHP development.</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:49:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Patrick</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-20239</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Sat, 25 Jun 2011 23:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-20239</guid>
		<description>Thank you. Your Video has been helpful a lot :) Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Thank you. Your Video has been helpful a lot <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KOO</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-16168</link>
		<dc:creator>KOO</dc:creator>
		<pubDate>Mon, 14 Mar 2011 02:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-16168</guid>
		<description>Hi there, I think it would really be a better idea to use &quot;Zend_Form_Element_Multiselect&quot; to choose multiple tasks rather than checkboxes since multiselect provides an instant array and easier to handle.

Also, to get rid of unwanted form values to be saved, you can set ignore rather than delete it and recreate it after saving. This sounds a little bit inefficient.

There is a convenient function in Zend_Form to populate data from array, so simply follow a good naming convention in both database and Zend_Form would save you much work by using toArray in row class and populate all the data into the form for viewing.</description>
		<content:encoded><![CDATA[<p>Hi there, I think it would really be a better idea to use &#8220;Zend_Form_Element_Multiselect&#8221; to choose multiple tasks rather than checkboxes since multiselect provides an instant array and easier to handle.</p>
<p>Also, to get rid of unwanted form values to be saved, you can set ignore rather than delete it and recreate it after saving. This sounds a little bit inefficient.</p>
<p>There is a convenient function in Zend_Form to populate data from array, so simply follow a good naming convention in both database and Zend_Form would save you much work by using toArray in row class and populate all the data into the form for viewing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-2910</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 05 Oct 2009 15:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-2910</guid>
		<description>As far as I can tell, the hidden field is there so that you know whether the checkbox was checked or not. In a normal HTML form, a checkbox which hasn&#039;t been checked isn&#039;t included in the POST variables.

Extremely useful screen cast by the way. 

Any ideas how you could include the &quot;Associate&quot; form into a &quot;Create User&quot; form? So that you can create a user and add task associations in one form?</description>
		<content:encoded><![CDATA[<p>As far as I can tell, the hidden field is there so that you know whether the checkbox was checked or not. In a normal HTML form, a checkbox which hasn&#8217;t been checked isn&#8217;t included in the POST variables.</p>
<p>Extremely useful screen cast by the way. </p>
<p>Any ideas how you could include the &#8220;Associate&#8221; form into a &#8220;Create User&#8221; form? So that you can create a user and add task associations in one form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1797</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Sun, 19 Jul 2009 09:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1797</guid>
		<description>Cool casts that that will give me a quick start :-)

Anyway I think Zend is a cool thing, although the generated checkbox code is horrible...:

$this-&gt;addElement(new Zend_Form_Element_Checkbox(&quot;test&quot;));

generates

&gt;dt id=&quot;test-label&quot;&gt;&#160;
&gt;dd id=&quot;test-element&quot;&gt;
&gt;input type=&quot;hidden&quot; name=&quot;test&quot; value=&quot;0&quot; /&gt;&gt;input type=&quot;checkbox&quot; name=&quot;test&quot; id=&quot;test&quot; value=&quot;1&quot; /&gt;&gt;/dd&gt;&gt;/dl&gt;

the dt/dd are so far ok, but what the hell should this hidden textfield? you normally have w3c compliant the possibility to have more checkboxes with the same name and get a comma separated list after post... 
this is impossible with Zend because of this hidden field...</description>
		<content:encoded><![CDATA[<p>Cool casts that that will give me a quick start <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Anyway I think Zend is a cool thing, although the generated checkbox code is horrible&#8230;:</p>
<p>$this-&gt;addElement(new Zend_Form_Element_Checkbox(&#8220;test&#8221;));</p>
<p>generates</p>
<p>&gt;dt id=&#8221;test-label&#8221;&gt;&nbsp;<br />
&gt;dd id=&#8221;test-element&#8221;&gt;<br />
&gt;input type=&#8221;hidden&#8221; name=&#8221;test&#8221; value=&#8221;0&#8243; /&gt;&gt;input type=&#8221;checkbox&#8221; name=&#8221;test&#8221; id=&#8221;test&#8221; value=&#8221;1&#8243; /&gt;&gt;/dd&gt;&gt;/dl&gt;</p>
<p>the dt/dd are so far ok, but what the hell should this hidden textfield? you normally have w3c compliant the possibility to have more checkboxes with the same name and get a comma separated list after post&#8230;<br />
this is impossible with Zend because of this hidden field&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1796</link>
		<dc:creator>Oliver</dc:creator>
		<pubDate>Sun, 19 Jul 2009 09:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1796</guid>
		<description>Cool casts that that will give me a quick start :-)

Anyway I think Zend is a cool thing, although the generated checkbox code is horrible...:

$this-&gt;addElement(new Zend_Form_Element_Checkbox(&quot;test&quot;));

generates

&#160;



the dt/dd are so far ok, but what the hell should this hidden textfield? you normally have w3c compliant the possibility to have more checkboxes with the same name and get a comma separated list after post... 
this is impossible with Zend because of this hidden field...</description>
		<content:encoded><![CDATA[<p>Cool casts that that will give me a quick start <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Anyway I think Zend is a cool thing, although the generated checkbox code is horrible&#8230;:</p>
<p>$this-&gt;addElement(new Zend_Form_Element_Checkbox(&#8220;test&#8221;));</p>
<p>generates</p>
<p>&nbsp;</p>
<p>the dt/dd are so far ok, but what the hell should this hidden textfield? you normally have w3c compliant the possibility to have more checkboxes with the same name and get a comma separated list after post&#8230;<br />
this is impossible with Zend because of this hidden field&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1476</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 02 Jul 2009 19:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1476</guid>
		<description>hey Derick... probably just convenience :)</description>
		<content:encoded><![CDATA[<p>hey Derick&#8230; probably just convenience <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1470</link>
		<dc:creator>Derick</dc:creator>
		<pubDate>Thu, 02 Jul 2009 07:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1470</guid>
		<description>I noticed you were using $dataRowset[0] to grab the first row in a Zend_Db_Table_Rowset.

Was there a reason you weren&#039;t using -&gt;current() or was it just convenient?</description>
		<content:encoded><![CDATA[<p>I noticed you were using $dataRowset[0] to grab the first row in a Zend_Db_Table_Rowset.</p>
<p>Was there a reason you weren&#8217;t using -&gt;current() or was it just convenient?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1261</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Sat, 13 Jun 2009 20:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1261</guid>
		<description>Hi Staar2,

Are you referring to Zend &quot;Modules&quot;?</description>
		<content:encoded><![CDATA[<p>Hi Staar2,</p>
<p>Are you referring to Zend &#8220;Modules&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: staar2</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1258</link>
		<dc:creator>staar2</dc:creator>
		<pubDate>Sat, 13 Jun 2009 07:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1258</guid>
		<description>Nice cast, but I am waiting cast for modular setup. I dont get the modular way of working.</description>
		<content:encoded><![CDATA[<p>Nice cast, but I am waiting cast for modular setup. I dont get the modular way of working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijan</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-1019</link>
		<dc:creator>Marijan</dc:creator>
		<pubDate>Thu, 28 May 2009 13:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-1019</guid>
		<description>Thanks a lot for all your cast. I really appreciate what you do to make us a lot easier to learn ZF.

I find ZF very useful so I started to learn about it. My next project will be in ZF so every tip I can get is cool, and you gave me good tips :).

Thx :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot for all your cast. I really appreciate what you do to make us a lot easier to learn ZF.</p>
<p>I find ZF very useful so I started to learn about it. My next project will be in ZF so every tip I can get is cool, and you gave me good tips <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Thx <img src='http://www.zendcasts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tawfekov</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-855</link>
		<dc:creator>tawfekov</dc:creator>
		<pubDate>Sat, 23 May 2009 06:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-855</guid>
		<description>Thank you very much about this cast 
and for the zipped file</description>
		<content:encoded><![CDATA[<p>Thank you very much about this cast<br />
and for the zipped file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Decoder</title>
		<link>http://www.zendcasts.com/many-to-many-with-zend_form-and-zend_db/2009/05/comment-page-1/#comment-818</link>
		<dc:creator>Decoder</dc:creator>
		<pubDate>Fri, 22 May 2009 03:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zendcasts.com/?p=194#comment-818</guid>
		<description>Thanks so much!
In recent casts is very much useful information.
I wish you success</description>
		<content:encoded><![CDATA[<p>Thanks so much!<br />
In recent casts is very much useful information.<br />
I wish you success</p>
]]></content:encoded>
	</item>
</channel>
</rss>

