<?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: Snippet: Symfony Forms &#8211; Definition List Form Formatter</title>
	<atom:link href="http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/feed" rel="self" type="application/rss+xml" />
	<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter</link>
	<description>Web development, Symfony, Wordpress and general geekery</description>
	<lastBuildDate>Thu, 10 May 2012 18:15:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: symfony custom form formatter &#171; ahristidis</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-1624</link>
		<dc:creator>symfony custom form formatter &#171; ahristidis</dc:creator>
		<pubDate>Sun, 03 Jul 2011 23:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-1624</guid>
		<description>[...] http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter">http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Orchard</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-1604</link>
		<dc:creator>Sam Orchard</dc:creator>
		<pubDate>Sat, 21 May 2011 15:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-1604</guid>
		<description>Gonna give this a try, cheers!</description>
		<content:encoded><![CDATA[<p>Gonna give this a try, cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sisio</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-1471</link>
		<dc:creator>sisio</dc:creator>
		<pubDate>Sat, 29 Jan 2011 20:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-1471</guid>
		<description>Here is my idea for forcing form renderer to wrap fields using $decoratorFormat:
Extend default form class:
&lt;code&gt;
class BaseForm extends sfFormSymfony {
    public function render($attributes = array()) {
        return strtr(
                $this-&gt;getWidgetSchema()-&gt;getFormFormatter()-&gt;getDecoratorFormat(),
                array(&#039;%content%&#039; =&gt; parent::render($attributes))
        );
    }
}
&lt;/code&gt;
and use
&lt;code&gt;
&lt;?php echo $form-&gt;render() ?&gt;
&lt;/code&gt;
to render form. This works with custom and default formatters.</description>
		<content:encoded><![CDATA[<p>Here is my idea for forcing form renderer to wrap fields using $decoratorFormat:<br />
Extend default form class:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">class BaseForm extends sfFormSymfony {<br />
&nbsp; &nbsp; public function render($attributes = array()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return strtr(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;getWidgetSchema()-&gt;getFormFormatter()-&gt;getDecoratorFormat(),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array('%content%' =&gt; parent::render($attributes))<br />
&nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; }<br />
}</div></td></tr></tbody></table></div>
<p>and use</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php echo $form-&gt;render() ?&gt;</div></td></tr></tbody></table></div>
<p>to render form. This works with custom and default formatters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zema</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-1424</link>
		<dc:creator>Zema</dc:creator>
		<pubDate>Sat, 11 Dec 2010 21:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-1424</guid>
		<description>I guess that the class should be called &lt;code&gt;sfWidgetFormSchemaFormatterDeflist&lt;/code&gt; (ends on &#039;&lt;code&gt;list&lt;/code&gt;&#039; instead of &#039;&lt;code&gt;List&lt;/code&gt;&#039;), because it may cause problems with case-sensitivity of file names on linux. In other case the formatter should be called like this: &lt;code&gt;$form-&gt;renderUsing(&#039;defList&#039;);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I guess that the class should be called</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sfWidgetFormSchemaFormatterDeflist</div></td></tr></tbody></table></div>
<p>(ends on &#8216;</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">list</div></td></tr></tbody></table></div>
<p>&#8216; instead of &#8216;</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">List</div></td></tr></tbody></table></div>
<p>&#8216;), because it may cause problems with case-sensitivity of file names on linux. In other case the formatter should be called like this:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$form-&gt;renderUsing('defList');</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: ErisDS</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-826</link>
		<dc:creator>ErisDS</dc:creator>
		<pubDate>Thu, 26 Aug 2010 12:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-826</guid>
		<description>Sorry for the slow reply. I think you might need:
&lt;code lang=&quot;php&quot;&gt; &lt;?php echo $form-&gt;render() ?&gt;&lt;/code&gt;
but I&#039;m not completely sure off the top of my head.</description>
		<content:encoded><![CDATA[<p>Sorry for the slow reply. I think you might need:</p>
<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">render</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>but I&#8217;m not completely sure off the top of my head.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jmmm</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-809</link>
		<dc:creator>Jmmm</dc:creator>
		<pubDate>Wed, 11 Aug 2010 14:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-809</guid>
		<description>Thanks a lot !

Very useful. Hovewer, it doesn’t add the DL tag for me while i put &lt;code&gt;&lt;?php echo $form ?&gt;&lt;/code&gt;

Any idea ?</description>
		<content:encoded><![CDATA[<p>Thanks a lot !</p>
<p>Very useful. Hovewer, it doesn’t add the DL tag for me while i put</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php echo $form ?&gt;</div></td></tr></tbody></table></div>
<p>Any idea ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ErisDS</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-336</link>
		<dc:creator>ErisDS</dc:creator>
		<pubDate>Sun, 23 Aug 2009 08:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-336</guid>
		<description>What are you having problems with? You can always contact me via the contact form</description>
		<content:encoded><![CDATA[<p>What are you having problems with? You can always contact me via the contact form</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-329</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 21 Aug 2009 16:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-329</guid>
		<description>Cant make it work. Damn. Plz contact with me.</description>
		<content:encoded><![CDATA[<p>Cant make it work. Damn. Plz contact with me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-189</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Thu, 16 Jul 2009 15:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-189</guid>
		<description>@ErisDs nope sorry :) sweet looking forward to it.</description>
		<content:encoded><![CDATA[<p>@ErisDs nope sorry :) sweet looking forward to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ErisDS</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-definition-list-form-formatter/comment-page-1#comment-187</link>
		<dc:creator>ErisDS</dc:creator>
		<pubDate>Thu, 16 Jul 2009 13:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=396#comment-187</guid>
		<description>@Oncle Tom - Sorry I didn&#039;t reply before. Just got around to trying out your addition - will update the post shortly. Thank you so much for sharing that :)

@Henrik The way I styled the Definition list was to look a little how it does in the magneto backend if you have ever seen it? I will add a screenshot and some css later to explain better how it works.</description>
		<content:encoded><![CDATA[<p>@Oncle Tom &#8211; Sorry I didn&#8217;t reply before. Just got around to trying out your addition &#8211; will update the post shortly. Thank you so much for sharing that :)</p>
<p>@Henrik The way I styled the Definition list was to look a little how it does in the magneto backend if you have ever seen it? I will add a screenshot and some css later to explain better how it works.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

