<?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; Accessing the Object in a Form</title>
	<atom:link href="http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form/feed" rel="self" type="application/rss+xml" />
	<link>http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form</link>
	<description>Web development, Symfony, Wordpress and general geekery</description>
	<lastBuildDate>Mon, 23 Jan 2012 20:31:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Sarajane</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form/comment-page-1#comment-1375</link>
		<dc:creator>Sarajane</dc:creator>
		<pubDate>Thu, 28 Oct 2010 13:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=1344#comment-1375</guid>
		<description>Hey, thanks a million for posting this! I was trying to figure out how to access my module object from the form class  as I need to  display certain fields depending on a value.

Cheers :)</description>
		<content:encoded><![CDATA[<p>Hey, thanks a million for posting this! I was trying to figure out how to access my module object from the form class  as I need to  display certain fields depending on a value.</p>
<p>Cheers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ErisDS</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form/comment-page-1#comment-1365</link>
		<dc:creator>ErisDS</dc:creator>
		<pubDate>Mon, 25 Oct 2010 11:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=1344#comment-1365</guid>
		<description>&lt;strong&gt;@bender&lt;/strong&gt; If you use Symfony&#039;s module generator, it will provide all the code needed to manage the submission of forms, including object handling.

Normally, for example for creating an object, Symfony would generate you two actions and a helper method in your actions.class.php
executeNew
executeCreate
processForm

But this is Symfony 1.3, not sure if it&#039;s different now.</description>
		<content:encoded><![CDATA[<p><strong>@bender</strong> If you use Symfony&#8217;s module generator, it will provide all the code needed to manage the submission of forms, including object handling.</p>
<p>Normally, for example for creating an object, Symfony would generate you two actions and a helper method in your actions.class.php<br />
executeNew<br />
executeCreate<br />
processForm</p>
<p>But this is Symfony 1.3, not sure if it&#8217;s different now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bender</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form/comment-page-1#comment-1360</link>
		<dc:creator>bender</dc:creator>
		<pubDate>Sat, 23 Oct 2010 23:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=1344#comment-1360</guid>
		<description>After the form is submitted how do you get the object back and process it and save it? Do you usually do this in a separate action?</description>
		<content:encoded><![CDATA[<p>After the form is submitted how do you get the object back and process it and save it? Do you usually do this in a separate action?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ErisDS</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form/comment-page-1#comment-706</link>
		<dc:creator>ErisDS</dc:creator>
		<pubDate>Fri, 09 Jul 2010 06:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=1344#comment-706</guid>
		<description>Thanks Henrik, 
I covered the setDefaults method in another snippet here: &lt;a href=&quot;http://erisds.co.uk/symfony/snippet-symfony-forms-setting-default-values&quot; title=&quot;Snippet: Symfony Forms - Setting Default Values&quot;&gt;Snippet: Symfony Forms - Setting Default Values&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Thanks Henrik,<br />
I covered the setDefaults method in another snippet here: <a href="http://erisds.co.uk/symfony/snippet-symfony-forms-setting-default-values" title="Snippet: Symfony Forms - Setting Default Values">Snippet: Symfony Forms &#8211; Setting Default Values</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik Bjørnskov</title>
		<link>http://erisds.co.uk/symfony/snippet-symfony-forms-accessing-the-object-in-a-form/comment-page-1#comment-705</link>
		<dc:creator>Henrik Bjørnskov</dc:creator>
		<pubDate>Fri, 09 Jul 2010 05:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://erisds.co.uk/?p=1344#comment-705</guid>
		<description>The form also have a method called setDefauls which sets the default values for your fields and then gets overwritten when the user submits it :)</description>
		<content:encoded><![CDATA[<p>The form also have a method called setDefauls which sets the default values for your fields and then gets overwritten when the user submits it :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

