<?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: Symfony HowTo: Fileupload mit sfWidgetFormInputFileEditable</title>
	<atom:link href="http://www.dratir.com/2009/10/symfony-howto-fileupload-mit-sfwidgetforminputfileeditable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dratir.com/2009/10/symfony-howto-fileupload-mit-sfwidgetforminputfileeditable/</link>
	<description>cat /dev/brain</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:33:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: codec</title>
		<link>http://www.dratir.com/2009/10/symfony-howto-fileupload-mit-sfwidgetforminputfileeditable/comment-page-1/#comment-2853</link>
		<dc:creator>codec</dc:creator>
		<pubDate>Fri, 21 Jan 2011 17:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dratir.ch/?p=216#comment-2853</guid>
		<description>Schönes Tutorial. Ich würde noch vorschlagen den Editiermodus der Datei nur dann zu erlauben, wenn auch eine Datei vorhanden ist. Macht ja ohne wenig sinn :)

Auf Basis dieses Tuts hab ich es so gelöst:

$this-&gt;widgetSchema[&#039;img_normal&#039;] = new sfWidgetFormInputFileEditable(array(
...
&#039;edit_mode&#039; =&gt; !$this-&gt;isNew() &amp;&amp; $this-&gt;getObject()-&gt;getImgNormal() == true,
...
));</description>
		<content:encoded><![CDATA[<p>Schönes Tutorial. Ich würde noch vorschlagen den Editiermodus der Datei nur dann zu erlauben, wenn auch eine Datei vorhanden ist. Macht ja ohne wenig sinn <img src='http://www.dratir.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Auf Basis dieses Tuts hab ich es so gelöst:</p>
<p>$this-&gt;widgetSchema['img_normal'] = new sfWidgetFormInputFileEditable(array(<br />
&#8230;<br />
&#8216;edit_mode&#8217; =&gt; !$this-&gt;isNew() &amp;&amp; $this-&gt;getObject()-&gt;getImgNormal() == true,<br />
&#8230;<br />
));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whtvr</title>
		<link>http://www.dratir.com/2009/10/symfony-howto-fileupload-mit-sfwidgetforminputfileeditable/comment-page-1/#comment-295</link>
		<dc:creator>whtvr</dc:creator>
		<pubDate>Mon, 15 Mar 2010 18:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dratir.ch/?p=216#comment-295</guid>
		<description>Möchte hier anmerken, dass das nur für Doctrine Projekte geht. 

Die doSave kann man jedoch auch einwandfrei für das mit propel compativle file upload sfWidgetFormInputFile verwenden.</description>
		<content:encoded><![CDATA[<p>Möchte hier anmerken, dass das nur für Doctrine Projekte geht. </p>
<p>Die doSave kann man jedoch auch einwandfrei für das mit propel compativle file upload sfWidgetFormInputFile verwenden.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

