<?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: Non-existing fields no longer supported in FormHelper</title>
	<atom:link href="http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-30007</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sun, 11 Nov 2007 16:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-30007</guid>
		<description>@Tane: I think the only thing we as framework users can do is waiting for the devs to fix it, as they are the only guys knowing in which direction this functionality will move (at least I hope they know it *g*)</description>
		<content:encoded><![CDATA[<p>@Tane: I think the only thing we as framework users can do is waiting for the devs to fix it, as they are the only guys knowing in which direction this functionality will move (at least I hope they know it *g*)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tane Piper</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-29391</link>
		<dc:creator>Tane Piper</dc:creator>
		<pubDate>Fri, 09 Nov 2007 22:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-29391</guid>
		<description>@cakebaker: Yea, it&#039;s simply a case of trial and error at the moment, and I know its just going to break, but what can you do?</description>
		<content:encoded><![CDATA[<p>@cakebaker: Yea, it&#8217;s simply a case of trial and error at the moment, and I know its just going to break, but what can you do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-29346</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 09 Nov 2007 16:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-29346</guid>
		<description>@all: Thanks for your comments!

@Tane: Yes, that&#039;s a possible solution, but there are also strange results depending on the settings (&quot;Model.field&quot; vs. &quot;field&quot; as first parameter). 

And as Grant mentioned, it is not always appropriate.</description>
		<content:encoded><![CDATA[<p>@all: Thanks for your comments!</p>
<p>@Tane: Yes, that&#8217;s a possible solution, but there are also strange results depending on the settings (&#8220;Model.field&#8221; vs. &#8220;field&#8221; as first parameter). </p>
<p>And as Grant mentioned, it is not always appropriate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phpsc</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-29241</link>
		<dc:creator>phpsc</dc:creator>
		<pubDate>Fri, 09 Nov 2007 08:23:06 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-29241</guid>
		<description>Not sure if many would be in favor of this new functionality. I wish its reverted back to the way it was.</description>
		<content:encoded><![CDATA[<p>Not sure if many would be in favor of this new functionality. I wish its reverted back to the way it was.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tclineks</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-29041</link>
		<dc:creator>tclineks</dc:creator>
		<pubDate>Thu, 08 Nov 2007 15:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-29041</guid>
		<description>I was battling with this yesterday, hope it ends up clean again.</description>
		<content:encoded><![CDATA[<p>I was battling with this yesterday, hope it ends up clean again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nate</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-29039</link>
		<dc:creator>nate</dc:creator>
		<pubDate>Thu, 08 Nov 2007 15:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-29039</guid>
		<description>This functionality is still under development/review.</description>
		<content:encoded><![CDATA[<p>This functionality is still under development/review.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grant Cox</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-28805</link>
		<dc:creator>Grant Cox</dc:creator>
		<pubDate>Wed, 07 Nov 2007 23:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-28805</guid>
		<description>I hope that what we are seeing is only partial functionality - and before the next 1.2.x release a more complete solution is developed.

I don&#039;t think that accessing the form functions directly is always appropriate - then you have to manually add the div wrapping around each one?</description>
		<content:encoded><![CDATA[<p>I hope that what we are seeing is only partial functionality &#8211; and before the next 1.2.x release a more complete solution is developed.</p>
<p>I don&#8217;t think that accessing the form functions directly is always appropriate &#8211; then you have to manually add the div wrapping around each one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tane Piper</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-28802</link>
		<dc:creator>Tane Piper</dc:creator>
		<pubDate>Wed, 07 Nov 2007 23:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-28802</guid>
		<description>I&#039;ve found that actually setting the form element type (like $form-&gt;textarea, $form-&gt;checkbox and $form-&gt;hidden) gets round these issues.

Like so:

input(&#039;User.email&#039;, array(&#039;label&#039;=&gt;&#039;Please enter your email&#039;));
					echo $form-&gt;password(&#039;User.passwd&#039;, array(&#039;label&#039;=&gt;&#039;Please enter your password&#039;));
					echo $form-&gt;text(&#039;passwd_conf&#039;, array(&#039;type&#039;=&gt;&#039;password&#039;, &#039;label&#039;=&gt;&#039;Please confirm your password&#039;, &#039;type&#039;=&gt;&#039;password&#039;));
					echo $form-&gt;input(&#039;User.display_name&#039;, array(&#039;label&#039;=&gt;&#039;Please enter your desired display name&#039;));
					echo $form-&gt;hidden(&#039;User.active&#039;);
				?&gt;
It is annoying, but it&#039;s certainly workable.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found that actually setting the form element type (like $form-&gt;textarea, $form-&gt;checkbox and $form-&gt;hidden) gets round these issues.</p>
<p>Like so:</p>
<p>input(&#8216;User.email&#8217;, array(&#8216;label&#8217;=&gt;&#8217;Please enter your email&#8217;));<br />
					echo $form-&gt;password(&#8216;User.passwd&#8217;, array(&#8216;label&#8217;=&gt;&#8217;Please enter your password&#8217;));<br />
					echo $form-&gt;text(&#8216;passwd_conf&#8217;, array(&#8216;type&#8217;=&gt;&#8217;password&#8217;, &#8216;label&#8217;=&gt;&#8217;Please confirm your password&#8217;, &#8216;type&#8217;=&gt;&#8217;password&#8217;));<br />
					echo $form-&gt;input(&#8216;User.display_name&#8217;, array(&#8216;label&#8217;=&gt;&#8217;Please enter your desired display name&#8217;));<br />
					echo $form-&gt;hidden(&#8216;User.active&#8217;);<br />
				?&gt;<br />
It is annoying, but it&#8217;s certainly workable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-28740</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 07 Nov 2007 18:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-28740</guid>
		<description>@all: Thanks for your comments!

@Stefano, Brandon: Yes, it works if you specify the id. But only if you use:
&lt;pre&gt;
echo $form-&gt;input(’Model.virtual_field’, array(’id’ =&gt; ‘ModelVirtualField’));
&lt;/pre&gt;
If you use 
&lt;pre&gt;
echo $form-&gt;input(&#039;virtual_field’);
&lt;/pre&gt;
it creates the correct id, but then the name of the field is &quot;data[Model][virtual_field][virtual_field]&quot; instead of &quot;data[Model][virtual_field]&quot;...</description>
		<content:encoded><![CDATA[<p>@all: Thanks for your comments!</p>
<p>@Stefano, Brandon: Yes, it works if you specify the id. But only if you use:</p>
<pre>
echo $form-&gt;input(’Model.virtual_field’, array(’id’ =&gt; ‘ModelVirtualField’));
</pre>
<p>If you use </p>
<pre>
echo $form-&gt;input('virtual_field’);
</pre>
<p>it creates the correct id, but then the name of the field is &#8220;data[Model][virtual_field][virtual_field]&#8221; instead of &#8220;data[Model][virtual_field]&#8220;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon P</title>
		<link>http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/comment-page-1/#comment-28692</link>
		<dc:creator>Brandon P</dc:creator>
		<pubDate>Wed, 07 Nov 2007 16:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/07/non-existing-fields-no-longer-supported-in-formhelper/#comment-28692</guid>
		<description>Can you do?:

echo $form-&gt;input(&#039;virtual_field&#039;, array(&#039;id&#039; =&gt; &#039;ModelVirtualField&#039;));</description>
		<content:encoded><![CDATA[<p>Can you do?:</p>
<p>echo $form-&gt;input(&#8216;virtual_field&#8217;, array(&#8216;id&#8217; =&gt; &#8216;ModelVirtualField&#8217;));</p>
]]></content:encoded>
	</item>
</channel>
</rss>

