<?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: Zend_Form Radio Buttons</title>
	<atom:link href="http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/</link>
	<description>www.davidkelly.ie</description>
	<lastBuildDate>Tue, 31 Jan 2012 22:47:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Daniel Del Rio</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-8487</link>
		<dc:creator>Daniel Del Rio</dc:creator>
		<pubDate>Wed, 02 Jun 2010 02:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-8487</guid>
		<description>@Dave,

I ended up figuring it out. -&gt;setValue does do the trick but it wasn&#039;t working for me because I wasn&#039;t using the formRadio view helper to print out the element. I wrote my own custom one and forgot to print out the $checked variable in my element&#039;s markup.

Daniel</description>
		<content:encoded><![CDATA[<p>@Dave,</p>
<p>I ended up figuring it out. -&gt;setValue does do the trick but it wasn&#8217;t working for me because I wasn&#8217;t using the formRadio view helper to print out the element. I wrote my own custom one and forgot to print out the $checked variable in my element&#8217;s markup.</p>
<p>Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-8486</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 31 May 2010 09:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-8486</guid>
		<description>@Daniel,

Have you tried -&gt;setAttribute(&#039;checked&#039;, &#039;checked&#039;). Although I&#039;m guessing this will check the first radio button.

You could also look into this method: http://stackoverflow.com/questions/1911293/how-to-set-the-default-checked-value-of-a-zend-form-radio-element

Dave.</description>
		<content:encoded><![CDATA[<p>@Daniel,</p>
<p>Have you tried ->setAttribute(&#8216;checked&#8217;, &#8216;checked&#8217;). Although I&#8217;m guessing this will check the first radio button.</p>
<p>You could also look into this method: <a href="http://stackoverflow.com/questions/1911293/how-to-set-the-default-checked-value-of-a-zend-form-radio-element" rel="nofollow">http://stackoverflow.com/questions/1911293/how-to-set-the-default-checked-value-of-a-zend-form-radio-element</a></p>
<p>Dave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Del Rio</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-8485</link>
		<dc:creator>Daniel Del Rio</dc:creator>
		<pubDate>Fri, 28 May 2010 15:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-8485</guid>
		<description>I&#039;ve tried using the -&gt;setValue(&#039;R&#039;) you have but it doesn&#039;t pre-select any of the radio buttons. How can I control which radio button is selected?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried using the -&gt;setValue(&#8216;R&#8217;) you have but it doesn&#8217;t pre-select any of the radio buttons. How can I control which radio button is selected?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-8482</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 12 Mar 2010 12:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-8482</guid>
		<description>Hi Dave,

A better way to set the &#039;value&#039; attributes is to pass an associative array to addMultiOptions, ie

-&gt;addMultiOptions(array(
		&#039;true&#039; =&gt; &#039;by frequency&#039;,
		&#039;false&#039; =&gt; &#039;alphabetically&#039;
									))</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>A better way to set the &#8216;value&#8217; attributes is to pass an associative array to addMultiOptions, ie</p>
<p>-&gt;addMultiOptions(array(<br />
		&#8216;true&#8217; =&gt; &#8216;by frequency&#8217;,<br />
		&#8216;false&#8217; =&gt; &#8216;alphabetically&#8217;<br />
									))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vasim</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-7702</link>
		<dc:creator>vasim</dc:creator>
		<pubDate>Tue, 30 Jun 2009 07:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-7702</guid>
		<description>Hi, Dave
 
    Many Thanks for this help.....</description>
		<content:encoded><![CDATA[<p>Hi, Dave</p>
<p>    Many Thanks for this help&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-4144</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 10 Mar 2009 11:02:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-4144</guid>
		<description>@Mark, @firecall

Thanks for the comments guys.

I can relate to the frustration, however, I&#039;m wary of being overly harsh on problems with the docs, as I think it&#039;s a bit unfair because it&#039;s an open source project. When I started out with Zend, I found the learning curve incredibly frustrating (and made worse by problems I had understanding some of the docs); that is why I&#039;ve posted some stuff on this blog.  

I suppose the best way to address these problems is to do as Wil suggested above - contribute documentation back to the community; I also think that posting tutorials / fixes you&#039;ve worked out on blogs can be really helpful for others feeling the frustration you&#039;ve experienced.</description>
		<content:encoded><![CDATA[<p>@Mark, @firecall</p>
<p>Thanks for the comments guys.</p>
<p>I can relate to the frustration, however, I&#8217;m wary of being overly harsh on problems with the docs, as I think it&#8217;s a bit unfair because it&#8217;s an open source project. When I started out with Zend, I found the learning curve incredibly frustrating (and made worse by problems I had understanding some of the docs); that is why I&#8217;ve posted some stuff on this blog.  </p>
<p>I suppose the best way to address these problems is to do as Wil suggested above &#8211; contribute documentation back to the community; I also think that posting tutorials / fixes you&#8217;ve worked out on blogs can be really helpful for others feeling the frustration you&#8217;ve experienced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: firecall</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-4141</link>
		<dc:creator>firecall</dc:creator>
		<pubDate>Tue, 10 Mar 2009 04:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-4141</guid>
		<description>++ to the infuriating docs. They are annoyingly obtuse at times. 

It was easier to use google and find this blog post to grab the correct syntax than to use the official docs. So thanks for taking the time to write it :)</description>
		<content:encoded><![CDATA[<p>++ to the infuriating docs. They are annoyingly obtuse at times. </p>
<p>It was easier to use google and find this blog post to grab the correct syntax than to use the official docs. So thanks for taking the time to write it <img src='http://www.davidkelly.ie/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-3644</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 14 Feb 2009 01:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-3644</guid>
		<description>Dave, I just have to say, your comments on the lack of documentation for the ZF are refreshing.  If I have to hear one more time that &quot;it&#039;s easy&quot; I&#039;m going to pull my hair out.  They&#039;re basically asking php programmers to completely re-learn how to build php and html pages.  OK, no problem, but how?  They tell you the what, but not the where.  For instance, they&#039;ll say just instantiate, such and such.... fine, but where? what file and what directory?  This tutorial illustrates just how incomplete their documentation really is.  There&#039;s nothing in their documentation on how to use an html radio buttons.  And why does every incarnation of the framework, use a different directory structure?  Everyone claims it&#039;s great, but the learning curve is so huge that it&#039;s only great if you have a month to sit down and recreate the wheel.  Anyway, thanks for all your efforts!</description>
		<content:encoded><![CDATA[<p>Dave, I just have to say, your comments on the lack of documentation for the ZF are refreshing.  If I have to hear one more time that &#8220;it&#8217;s easy&#8221; I&#8217;m going to pull my hair out.  They&#8217;re basically asking php programmers to completely re-learn how to build php and html pages.  OK, no problem, but how?  They tell you the what, but not the where.  For instance, they&#8217;ll say just instantiate, such and such&#8230;. fine, but where? what file and what directory?  This tutorial illustrates just how incomplete their documentation really is.  There&#8217;s nothing in their documentation on how to use an html radio buttons.  And why does every incarnation of the framework, use a different directory structure?  Everyone claims it&#8217;s great, but the learning curve is so huge that it&#8217;s only great if you have a month to sit down and recreate the wheel.  Anyway, thanks for all your efforts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-3448</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 06 Feb 2009 09:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-3448</guid>
		<description>Hi Aniket,

Glad to hear it helped.

I haven&#039;t tried horizontal alignment, but I&#039;m sure that you could do that using CSS (and definitely using some JavaScript &amp; CSS)</description>
		<content:encoded><![CDATA[<p>Hi Aniket,</p>
<p>Glad to hear it helped.</p>
<p>I haven&#8217;t tried horizontal alignment, but I&#8217;m sure that you could do that using CSS (and definitely using some JavaScript &amp; CSS)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aniket Kedari</title>
		<link>http://www.davidkelly.ie/2008/06/18/zend_form-radio-buttons/comment-page-1/#comment-3445</link>
		<dc:creator>Aniket Kedari</dc:creator>
		<pubDate>Fri, 06 Feb 2009 08:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidkelly.ie/blog/?p=66#comment-3445</guid>
		<description>Thanks for info. I was struggling a lot for radio buttons.
Can you tell me how can we aling radio buttons horizontally.</description>
		<content:encoded><![CDATA[<p>Thanks for info. I was struggling a lot for radio buttons.<br />
Can you tell me how can we aling radio buttons horizontally.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

