<?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: Rich Date Input Widget for Symfony 1.1 Forms</title>
	<atom:link href="http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 20:44:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: John</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-1120</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 17 Feb 2010 10:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-1120</guid>
		<description>Hi,

Nice tip that I&#039;ve used a few times now!

However...

This time I wanted to use it in a partial. To get the calendar to load in one though, I had to specifically include /sf/calendar/calendar.js, /sf/calendar/lang/calendar-en.js, /sf/calendar/calendar-setup.js and /sf/calendar/skins/aqua/theme.css in my view.yml

This works great in the partial, but in this instance when validation fails you end up back on a standard template, resulting in everything loading twice (once because I specified in view.yml and once autoloading as they should) which causes a nasty error in calendar.js...

Just thought someone here might have been aware of the way around this? I tried creating a view.yml at the module level and specifying the javascripts and css for my partial while removing them from the app level view.yml but it doesn&#039;t seem to load them unfortunately...

If anyone reading this comes up with the solution would be interested to hear... I think I&#039;ll have to give up and find another approach though...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice tip that I&#8217;ve used a few times now!</p>
<p>However&#8230;</p>
<p>This time I wanted to use it in a partial. To get the calendar to load in one though, I had to specifically include /sf/calendar/calendar.js, /sf/calendar/lang/calendar-en.js, /sf/calendar/calendar-setup.js and /sf/calendar/skins/aqua/theme.css in my view.yml</p>
<p>This works great in the partial, but in this instance when validation fails you end up back on a standard template, resulting in everything loading twice (once because I specified in view.yml and once autoloading as they should) which causes a nasty error in calendar.js&#8230;</p>
<p>Just thought someone here might have been aware of the way around this? I tried creating a view.yml at the module level and specifying the javascripts and css for my partial while removing them from the app level view.yml but it doesn&#8217;t seem to load them unfortunately&#8230;</p>
<p>If anyone reading this comes up with the solution would be interested to hear&#8230; I think I&#8217;ll have to give up and find another approach though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Daum</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-900</link>
		<dc:creator>Matt Daum</dc:creator>
		<pubDate>Wed, 23 Sep 2009 16:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-900</guid>
		<description>Simone-
You just need to take the code from above and you can put it in the /lib folder of the project (or create a folder called &#039;widget&#039; inside /lib if you want to keep it organized).  You can name the file something like myWidgetFormRichDate.class.php and then you just call it as you would with any other widget.</description>
		<content:encoded><![CDATA[<p>Simone-<br />
You just need to take the code from above and you can put it in the /lib folder of the project (or create a folder called &#8216;widget&#8217; inside /lib if you want to keep it organized).  You can name the file something like myWidgetFormRichDate.class.php and then you just call it as you would with any other widget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simone Fumagalli</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-899</link>
		<dc:creator>Simone Fumagalli</dc:creator>
		<pubDate>Wed, 23 Sep 2009 15:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-899</guid>
		<description>Great, but in which file do I have to save/add this code ?</description>
		<content:encoded><![CDATA[<p>Great, but in which file do I have to save/add this code ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-360</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 03 Jun 2009 23:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-360</guid>
		<description>This is great - I can&#039;t upgrade to 1.2 just yet, and its a real life saver.

However, I encountered a couple of problems trying to set some configuration options of the rich data tag. I eventually discovered that input_date_tag() expects a string of options in the form &#039;key=val key=val&#039;, as opposed to an array. Here&#039;s my kludgy work around:

addOption( &#039;calendar_button_txt&#039;, false );
    $this-&gt;addOption( &#039;calendar_button_img&#039;, false );
    $this-&gt;addOption( &#039;css&#039;, &#039;skins/aqua/theme&#039; );
    $this-&gt;addOption( &#039;calendar_options&#039;, false );
    $this-&gt;addOption( &#039;rich&#039;, true );
  }

  public function render($name, $value = null, $attributes = array(), $errors = array())
  {
    //Get the date input function from Form helper
    use_helper(&#039;Form&#039;);

    $opts = &#039;&#039;;
    foreach( array_merge( $attributes, $this-&gt;getOptions() ) as $k =&gt; $v ) {
      $opts .= &quot;$k=$v &quot;;
    }

    return input_date_tag($name,$value, $opts );
  }
}</description>
		<content:encoded><![CDATA[<p>This is great &#8211; I can&#8217;t upgrade to 1.2 just yet, and its a real life saver.</p>
<p>However, I encountered a couple of problems trying to set some configuration options of the rich data tag. I eventually discovered that input_date_tag() expects a string of options in the form &#8216;key=val key=val&#8217;, as opposed to an array. Here&#8217;s my kludgy work around:</p>
<p>addOption( &#8216;calendar_button_txt&#8217;, false );<br />
    $this-&gt;addOption( &#8216;calendar_button_img&#8217;, false );<br />
    $this-&gt;addOption( &#8216;css&#8217;, &#8216;skins/aqua/theme&#8217; );<br />
    $this-&gt;addOption( &#8216;calendar_options&#8217;, false );<br />
    $this-&gt;addOption( &#8216;rich&#8217;, true );<br />
  }</p>
<p>  public function render($name, $value = null, $attributes = array(), $errors = array())<br />
  {<br />
    //Get the date input function from Form helper<br />
    use_helper(&#8216;Form&#8217;);</p>
<p>    $opts = &#8221;;<br />
    foreach( array_merge( $attributes, $this-&gt;getOptions() ) as $k =&gt; $v ) {<br />
      $opts .= &#8220;$k=$v &#8220;;<br />
    }</p>
<p>    return input_date_tag($name,$value, $opts );<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vfclists</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-77</link>
		<dc:creator>vfclists</dc:creator>
		<pubDate>Fri, 26 Dec 2008 19:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-77</guid>
		<description>I am to new symfony and using input_date_tag() in my files results in an error.

How would I get this working in symfony 1.2.0? 

Are there any libraries, helpers and plugins I need to add to the forms code?</description>
		<content:encoded><![CDATA[<p>I am to new symfony and using input_date_tag() in my files results in an error.</p>
<p>How would I get this working in symfony 1.2.0? </p>
<p>Are there any libraries, helpers and plugins I need to add to the forms code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Daum</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-76</link>
		<dc:creator>Matt Daum</dc:creator>
		<pubDate>Fri, 26 Dec 2008 19:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-76</guid>
		<description>vfclists- in Symfony 1.2 you don&#039;t need the above widget.  Instead you can just use the sfFormExtraPlugin to get the rich date widget.  http://www.symfony-project.org/plugins/sfFormExtraPlugin is the link to the plugin, I suggest you use it rather than the above widget.</description>
		<content:encoded><![CDATA[<p>vfclists- in Symfony 1.2 you don&#8217;t need the above widget.  Instead you can just use the sfFormExtraPlugin to get the rich date widget.  <a href="http://www.symfony-project.org/plugins/sfFormExtraPlugin" rel="nofollow">http://www.symfony-project.org/plugins/sfFormExtraPlugin</a> is the link to the plugin, I suggest you use it rather than the above widget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vfclists</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-75</link>
		<dc:creator>vfclists</dc:creator>
		<pubDate>Fri, 26 Dec 2008 19:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-75</guid>
		<description>I am to new symfony and using input_date_tag() in my files results in an error.

How would I get this working in symfony 1.2.0?</description>
		<content:encoded><![CDATA[<p>I am to new symfony and using input_date_tag() in my files results in an error.</p>
<p>How would I get this working in symfony 1.2.0?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Wayne Stoppel &#187; Blog Archive &#187; Custom Symfony widgets, changing widgets, and removing widgets.</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-61</link>
		<dc:creator>Brett Wayne Stoppel &#187; Blog Archive &#187; Custom Symfony widgets, changing widgets, and removing widgets.</dc:creator>
		<pubDate>Tue, 16 Dec 2008 05:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-61</guid>
		<description>[...] order to set the value of rich = true in the input_date_tag method, we need to create a custom rich date widget. I simply followed setfive&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] order to set the value of rich = true in the input_date_tag method, we need to create a custom rich date widget. I simply followed setfive&#8217;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-60</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Tue, 16 Dec 2008 05:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-60</guid>
		<description>Thanks, this was helpful.

For anyone copy and pasting this widget code. The line

use_helper(’Form’);

has funky single quotes (’) that need to be changed to straight quotes (&#039;).</description>
		<content:encoded><![CDATA[<p>Thanks, this was helpful.</p>
<p>For anyone copy and pasting this widget code. The line</p>
<p>use_helper(’Form’);</p>
<p>has funky single quotes (’) that need to be changed to straight quotes (&#8216;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nop</title>
		<link>http://shout.setfive.com/2008/09/14/rich-date-input-widget-for-symfony-11-forms/comment-page-1/#comment-41</link>
		<dc:creator>Nop</dc:creator>
		<pubDate>Thu, 04 Dec 2008 18:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://shout.setfive.com/?p=27#comment-41</guid>
		<description>thanks a lot!</description>
		<content:encoded><![CDATA[<p>thanks a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

