<?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>Down Lifes Road... &#187; Code</title>
	<atom:link href="http://www.downlifesroad.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.downlifesroad.com</link>
	<description></description>
	<lastBuildDate>Thu, 30 Sep 2010 13:09:50 +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>Zend Form Element Radio and Default value</title>
		<link>http://www.downlifesroad.com/2009/10/27/zend-form-element-radio-and-default-value/</link>
		<comments>http://www.downlifesroad.com/2009/10/27/zend-form-element-radio-and-default-value/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 17:44:59 +0000</pubDate>
		<dc:creator>Casey</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.downlifesroad.com/?p=21</guid>
		<description><![CDATA[I setup a Zend Form object and needed radio buttons, but also needed a default value. Took me a few minutes to find, but here&#8217;s an example of use. /** * Setting some values for our radio buttons. */ $options = array( '1' => 'Option 1', '2' => 'Option 2', '3' => 'Option 3' ); [...]]]></description>
			<content:encoded><![CDATA[<p>I setup a Zend Form object and needed radio buttons, but also needed a default value. Took me a few minutes to find, but here&#8217;s an example of use.</p>
<pre lang="php">
/**
 * Setting some values for our radio buttons.
 */
$options = array(
    '1' => 'Option 1',
    '2' => 'Option 2',
    '3' => 'Option 3'
);

/**
 * The array('value' => 2) below sets our default value.
 */
$radio = new Zend_Form_Element_Radio('elementName', array('value' => '2'));
$radio->addMultiOptions($options);
$this->addElement($radio);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.downlifesroad.com/2009/10/27/zend-form-element-radio-and-default-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

