<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Symfonyandy&#039;s Blog</title>
	<atom:link href="http://symfonyandy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://symfonyandy.wordpress.com</link>
	<description>Andy&#039;s symfony musings</description>
	<lastBuildDate>Thu, 03 Feb 2011 11:13:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='symfonyandy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Symfonyandy&#039;s Blog</title>
		<link>http://symfonyandy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://symfonyandy.wordpress.com/osd.xml" title="Symfonyandy&#039;s Blog" />
	<atom:link rel='hub' href='http://symfonyandy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>propel 1.5</title>
		<link>http://symfonyandy.wordpress.com/2009/12/28/propel-1-5/</link>
		<comments>http://symfonyandy.wordpress.com/2009/12/28/propel-1-5/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 19:23:39 +0000</pubDate>
		<dc:creator>symfonyandy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://symfonyandy.wordpress.com/?p=57</guid>
		<description><![CDATA[propel 1.5 has been announced. There&#8217;s some exciting new features, see http://propel.phpdb.org/trac/wiki/Users/Documentation/1.5/WhatsNew I&#8217;m particularly looking forward to playing with the new ModelCriteria class. I think this will ultimately simplify the way we query the db, though it may take a bit of getting used to at first.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=57&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>propel 1.5 has been <a href="http://propel.posterous.com/would-you-like-to-play-with-propel-15">announced</a>. There&#8217;s some exciting new features, see http://propel.phpdb.org/trac/wiki/Users/Documentation/1.5/WhatsNew</p>
<p>I&#8217;m particularly looking forward to playing with the new ModelCriteria class. I think this will ultimately simplify the way we query the db, though it may take a bit of getting used to at first.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/symfonyandy.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/symfonyandy.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/symfonyandy.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/symfonyandy.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/symfonyandy.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/symfonyandy.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/symfonyandy.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/symfonyandy.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=57&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://symfonyandy.wordpress.com/2009/12/28/propel-1-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/418cdd7709c3609b19def0814d8a0bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">symfonyandy</media:title>
		</media:content>
	</item>
		<item>
		<title>new symfony release, it&#8217;s close!</title>
		<link>http://symfonyandy.wordpress.com/2009/11/27/new-symfony-release-its-close/</link>
		<comments>http://symfonyandy.wordpress.com/2009/11/27/new-symfony-release-its-close/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 23:22:21 +0000</pubDate>
		<dc:creator>symfonyandy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://symfonyandy.wordpress.com/?p=52</guid>
		<description><![CDATA[http://www.symfony-project.org/tutorial/1_4/en/whats-new My favourite is the new mailer component, based on Swift Mailer &#8211; very flexible. My second favourite is the sfForm::useFields() method. No more calls to unset($this[&#60;widget_name&#62;]) in sfForm::configure()<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=52&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.symfony-project.org/tutorial/1_4/en/whats-new">http://www.symfony-project.org/tutorial/1_4/en/whats-new</a></p>
<p>My favourite is the new mailer component, based on <a href="http://swiftmailer.org/">Swift Mailer</a> &#8211; very flexible.</p>
<p>My second favourite is the sfForm::useFields() method. No more calls to unset($this[&lt;widget_name&gt;]) in sfForm::configure()</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/symfonyandy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/symfonyandy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/symfonyandy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/symfonyandy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/symfonyandy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/symfonyandy.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/symfonyandy.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/symfonyandy.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=52&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://symfonyandy.wordpress.com/2009/11/27/new-symfony-release-its-close/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/418cdd7709c3609b19def0814d8a0bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">symfonyandy</media:title>
		</media:content>
	</item>
		<item>
		<title>propel 1.4 stable release</title>
		<link>http://symfonyandy.wordpress.com/2009/11/10/propel-1-4-stable-release/</link>
		<comments>http://symfonyandy.wordpress.com/2009/11/10/propel-1-4-stable-release/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 01:43:21 +0000</pubDate>
		<dc:creator>symfonyandy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://symfonyandy.wordpress.com/?p=49</guid>
		<description><![CDATA[Just a quickie: propel 1.4 stable is now released! This is available in the upcoming symfony 1.3 release. Our team have been running with 1.4 branch of propel for 2-3 months now and found it very stable. Give it a try. This will be the default version of propel in symfony 1.3 (release date Dec [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=49&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quickie: propel 1.4 stable is <a href="http://propel.posterous.com/propel-140-stable-is-there">now released</a>! This is available in the upcoming symfony 1.3 release. Our team have been running with 1.4 branch of propel for 2-3 months now and found it very stable. Give it a try.</p>
<p>This will be the default version of propel in <a href="http://www.symfony-project.org/installation/1_3">symfony 1.3</a> (release date Dec 2009)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/symfonyandy.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/symfonyandy.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/symfonyandy.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/symfonyandy.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/symfonyandy.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/symfonyandy.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/symfonyandy.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/symfonyandy.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=49&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://symfonyandy.wordpress.com/2009/11/10/propel-1-4-stable-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/418cdd7709c3609b19def0814d8a0bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">symfonyandy</media:title>
		</media:content>
	</item>
		<item>
		<title>tips for php coding in netbeans</title>
		<link>http://symfonyandy.wordpress.com/2009/10/30/tips-for-php-coding-in-netbeans/</link>
		<comments>http://symfonyandy.wordpress.com/2009/10/30/tips-for-php-coding-in-netbeans/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 23:53:13 +0000</pubDate>
		<dc:creator>symfonyandy</dc:creator>
				<category><![CDATA[ide]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://symfonyandy.wordpress.com/?p=41</guid>
		<description><![CDATA[I&#8217;ve switched from Vim to netbeans in the past 9 months or so &#8211; I&#8217;ve been using Vim for 5+ years before that and finding an editor to beat it wasn&#8217;t easy. Main aim was to get better code completion, plus whichever editor I used had to have &#8216;hippie search&#8216;  &#8211; this speeds up coding [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=41&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve switched from <a href="http://www.vim.org">Vim</a> to <a href="http://www.netbeans.org">netbeans</a> in the past 9 months or so &#8211; I&#8217;ve been using Vim for 5+ years before that and finding an editor to beat it wasn&#8217;t easy. Main aim was to get better code completion, plus whichever editor I used had to have &#8216;<a href="http://netbeans.dzone.com/tips/hidden-hippie">hippie search</a>&#8216;  &#8211; this speeds up coding no end. Tried <a href="http://www.eclipse.org/pdt/">eclipse</a> PDT along the way but found that too slow.</p>
<p>Ultimately netbeans persuaded me to convert. Here are some tips for using it:</p>
<h2>General tips</h2>
<ul>
<li><strong>Use at least <a title="netbeans download" href="http://netbeans.org/downloads/index.html">6.8 beta version</a> of netbeans</strong> &#8211; there are performance improvements for code completion which increase code completion a lot. If you&#8217;ve tried 6.7/6.5 &#8211; try again with the 6.8 beta+, especially with large projects.</li>
<li><strong>Enable hippie search</strong> &#8211; The default keys are ctrl+k and ctrl+shift+k &#8211; If you&#8217;re a Vim person, change these to ctrl+p and ctrl+n. The &#8216;Actions&#8217; in the keymap editor are &#8216;Next matching word&#8217; and &#8216;Previous matching word&#8217;</li>
<li><strong>I</strong><strong>nitiate code completion manually</strong> &#8211; use ctrl+space (default) I find the auto code completion popup just gets in the way. YMMV.</li>
<li><strong>Use Navigate menu</strong> &#8211; this allows you to find files/classes/functions/methods in your code almost instantly</li>
<li><strong>phpdoc your code</strong>:<strong> </strong>this allows code completion to work in places it otherwise could not</li>
</ul>
<h2>Symfony</h2>
<ul>
<li><strong>Ignore &#8216;test&#8217; directories</strong> &#8211; make sure you ignore certain dirs in symfony. This makes code completion ignore classes under those directories.  I have problems with it picking up classes not in our project e.g. sfContext can get confused with sfContextMock from the tests.</li>
<li><strong>Symfony is supported in netbeans 6.8M2+</strong> see <a href="http://blogs.sun.com/netbeansphp/entry/initial_symfony_support">http://blogs.sun.com/netbeansphp/entry/initial_symfony_support</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/symfonyandy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/symfonyandy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/symfonyandy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/symfonyandy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/symfonyandy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/symfonyandy.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/symfonyandy.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/symfonyandy.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=41&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://symfonyandy.wordpress.com/2009/10/30/tips-for-php-coding-in-netbeans/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/418cdd7709c3609b19def0814d8a0bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">symfonyandy</media:title>
		</media:content>
	</item>
		<item>
		<title>netbeans php code completion speed</title>
		<link>http://symfonyandy.wordpress.com/2009/10/22/netbeans-php-code-completion-speed/</link>
		<comments>http://symfonyandy.wordpress.com/2009/10/22/netbeans-php-code-completion-speed/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 17:55:32 +0000</pubDate>
		<dc:creator>symfonyandy</dc:creator>
				<category><![CDATA[ide]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://symfonyandy.wordpress.com/?p=34</guid>
		<description><![CDATA[If you&#8217;ve suffered slow netbeans code completion speeds in the past, you should look at the latest dev build Code completion is much quicker &#8211; instead of the 4-5 seconds it used to take, it&#8217;s now almost instant on a large php project with approx. 12,000 files (including symfony framework)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=34&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve suffered slow netbeans code completion speeds in the past, you should look at the <a href="http://bits.netbeans.org/download/trunk/nightly/latest/">latest dev build</a></p>
<p>Code completion is much quicker &#8211; instead of the 4-5 seconds it used to take, it&#8217;s now almost instant on a large php project with approx. 12,000 files (including symfony framework)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/symfonyandy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/symfonyandy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/symfonyandy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/symfonyandy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/symfonyandy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/symfonyandy.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/symfonyandy.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/symfonyandy.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=34&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://symfonyandy.wordpress.com/2009/10/22/netbeans-php-code-completion-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/418cdd7709c3609b19def0814d8a0bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">symfonyandy</media:title>
		</media:content>
	</item>
		<item>
		<title>Add MAXLENGTH attribute to sfWidgetFormInput</title>
		<link>http://symfonyandy.wordpress.com/2009/10/11/add-maxlength-attribute-to-sfwidgetforminput/</link>
		<comments>http://symfonyandy.wordpress.com/2009/10/11/add-maxlength-attribute-to-sfwidgetforminput/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 21:47:01 +0000</pubDate>
		<dc:creator>symfonyandy</dc:creator>
				<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://symfonyandy.wordpress.com/?p=3</guid>
		<description><![CDATA[One oversight of symfony is that it does not add the MAXLENGTH attribute to the sfWidgetFormInput/sfWidgetFormInputText widget even though it knows the max length for a validator. For Propel (Doctrine too?), symfony 1.2/1.3 allows you to override the setup in BaseFormPropel in lib\form\BaseFormPropel.class.php. Overriding setup() allows you to add the MAXLENGTH attribute based on the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=3&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One oversight of symfony is that it does not add the MAXLENGTH attribute to the sfWidgetFormInput/sfWidgetFormInputText widget even though it knows the max length for a validator. For Propel (Doctrine too?), symfony 1.2/1.3 allows you to override the setup in BaseFormPropel in lib\form\BaseFormPropel.class.php. Overriding setup() allows you to add the MAXLENGTH attribute based on the validator.</p>
<pre class="brush: php;">
public function setup() {
  parent::setup();
  foreach ($this-&gt;getWidgetSchema()-&gt;getFields() as $name =&gt; $widget)
  {
    $classname = get_class($widget);
    if ($classname == 'sfWidgetFormInputText') {
      if (($val = $this-&gt;getValidator($name)) &amp;&amp; ($len = $val-&gt;getOption('max_length'))) {
        $widget-&gt;setAttribute('maxlength', $len);
      }
    }
  }
}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/symfonyandy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/symfonyandy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/symfonyandy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/symfonyandy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/symfonyandy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/symfonyandy.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/symfonyandy.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/symfonyandy.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=symfonyandy.wordpress.com&amp;blog=9891084&amp;post=3&amp;subd=symfonyandy&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://symfonyandy.wordpress.com/2009/10/11/add-maxlength-attribute-to-sfwidgetforminput/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/418cdd7709c3609b19def0814d8a0bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">symfonyandy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
