<?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>{5} Setfive - Talking to the World &#187; symfony forms</title>
	<atom:link href="http://shout.setfive.com/tag/symfony-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://shout.setfive.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 18:48:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Rich Date Input Widget for Symfony 1.1 Forms</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/</link>
		<comments>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 01:55:33 +0000</pubDate>
		<dc:creator>Matt Daum</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[date form widget]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[rich date input widget]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony forms]]></category>

		<guid isPermaLink="false">http://shout.setfive.com/?p=27</guid>
		<description><![CDATA[I noticed that for some reason the 1.1 forms do not allow for the rich date input that many people like to use, so I just created a new widget that allows for rich date input. See below for the widget&#8217;s code. It uses the input_date_tag widget in the &#8216;Form&#8217; helper. /** * myWidgetFormRichDate is [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed that for some reason the 1.1 forms do not allow for the rich date input that many people like to use, so I just created a new widget that allows for rich date input. See below for the widget&#8217;s code. It uses the input_date_tag widget in the &#8216;Form&#8217; helper.</p>
<pre class="php" name="code">
/**
* myWidgetFormRichDate is a rich date widget for 1.1+ forms
*
* @author Matt Daum matt [at] setfive.com
*/
class myWidgetFormRichDate extends sfWidgetFormDate
{

  /**
  * @param array $options An array of options
  * @param array $attributes An array of default HTML attributes
  *
  * @see sfWidgetForm
  */
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);
  }

  /**
  * @param string $name The element name
  * @param string $value The value displayed in this widget
  * @param array $attributes An array of HTML attributes to be merged with the default HTML attributes
  * @param array $errors An array of errors for the field
  *
  * @return string An HTML tag string
  *
  * @see sfWidgetForm
  */
  public function render($name, $value = null, $attributes = array(), $errors = array())
  {
    //Get the date input function from Form helper
    use_helper('Form');
    //Make the widget rich
    $attributes['rich']=true;
    return input_date_tag($name,$value, $attributes);
  }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
