<?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"
	>
<channel>
	<title>Comments on: Simple Zend_Form Example</title>
	<atom:link href="http://akrabat.com/2008/02/21/simple-zend_form-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/2008/02/21/simple-zend_form-example/</link>
	<description>Developing PHP and XUL Software in the Real World</description>
	<pubDate>Thu, 24 Jul 2008 07:23:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20956</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Wed, 02 Apr 2008 21:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20956</guid>
		<description>I'm closing comments on this post as it's not a place for general Zend_Form support questions.

Please use the mailing lists at http://framework.zend.com/archives or #zftalk on Freenode IRC.

Thanks!

Rob...</description>
		<content:encoded><![CDATA[<p>I'm closing comments on this post as it's not a place for general Zend_Form support questions.</p>
<p>Please use the mailing lists at <a href="http://framework.zend.com/archives" rel="nofollow">http://framework.zend.com/archives</a> or #zftalk on Freenode IRC.</p>
<p>Thanks!</p>
<p>Rob&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20952</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 02 Apr 2008 16:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20952</guid>
		<description>Sam, an obvious answer is to wrap the form in a div in the view script. I.e.


form; ?&#62;
&lt;!--Closeds form1 div --&gt;

but this may not work I suppose if you are using the layout engine.

You can style a form with css. dd and dl lists can easily be styles with css as can input fields, labels etc etc. 

For a specific form you can also use css selectors. E.g. 

and then you can write a style such as div#form1 .form {}

which only applies to forms with an ID of form1. 

I too haven't properly got my head around decorators either so I might be completely missing the point.

Still can't get the Form_Element_MultiCheckbox class to work though. 

Anyone got any thoughts on that?</description>
		<content:encoded><![CDATA[<p>Sam, an obvious answer is to wrap the form in a div in the view script. I.e.</p>
<p>form; ?&gt;<br />
<!--Closeds form1 div --></p>
<p>but this may not work I suppose if you are using the layout engine.</p>
<p>You can style a form with css. dd and dl lists can easily be styles with css as can input fields, labels etc etc. </p>
<p>For a specific form you can also use css selectors. E.g. </p>
<p>and then you can write a style such as div#form1 .form {}</p>
<p>which only applies to forms with an ID of form1. </p>
<p>I too haven't properly got my head around decorators either so I might be completely missing the point.</p>
<p>Still can't get the Form_Element_MultiCheckbox class to work though. </p>
<p>Anyone got any thoughts on that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Weier O'Phinney</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20951</link>
		<dc:creator>Matthew Weier O'Phinney</dc:creator>
		<pubDate>Wed, 02 Apr 2008 16:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20951</guid>
		<description>Sam: You're asking in the wrong place. Please subscribe to one of the Framework mailing lists -- fw-mvc is the one most appropriate for forms -- as linked on this page:

http://framework.zend.com/archives

Another good place for help is the #zftalk IRC channel.</description>
		<content:encoded><![CDATA[<p>Sam: You're asking in the wrong place. Please subscribe to one of the Framework mailing lists &#8212; fw-mvc is the one most appropriate for forms &#8212; as linked on this page:</p>
<p><a href="http://framework.zend.com/archives" rel="nofollow">http://framework.zend.com/archives</a></p>
<p>Another good place for help is the #zftalk IRC channel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20950</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 02 Apr 2008 16:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20950</guid>
		<description>Similarly confused as to how to decorate the form and elements. I have   found no clear examples as to how to accomplish this. 

There's lots of stuff in the manual about decorators, and I've got some of  it to work on your sample, but it's not clear to me how to do things like 
1) wrap the form elements in a div with a specific classname
2) create a standard look and feel for all forms
3) override that look and feel for a specific form.

If you can point me in a direction that would be cool.</description>
		<content:encoded><![CDATA[<p>Similarly confused as to how to decorate the form and elements. I have   found no clear examples as to how to accomplish this. </p>
<p>There's lots of stuff in the manual about decorators, and I've got some of  it to work on your sample, but it's not clear to me how to do things like<br />
1) wrap the form elements in a div with a specific classname<br />
2) create a standard look and feel for all forms<br />
3) override that look and feel for a specific form.</p>
<p>If you can point me in a direction that would be cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20932</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 01 Apr 2008 19:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20932</guid>
		<description>Hi Rob,

Can you explain decorators? I read the zend manual and am still lost. Your form example shows the fields on one line in IE. How would I change the  to a 

I just get get my head around this.

Thanks
Frank</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>Can you explain decorators? I read the zend manual and am still lost. Your form example shows the fields on one line in IE. How would I change the  to a </p>
<p>I just get get my head around this.</p>
<p>Thanks<br />
Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20917</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 31 Mar 2008 23:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20917</guid>
		<description>I am having trouble with the 
Zend_Form_Element_MultiCheckbox() method. 

I keep getting:
Fatal error: Call to undefined method Zend_Form_Element_Checkbox::addMultiOptions() in /home/adamrifat/ultimateworks/forms/CreateContractorForm.php on line 29

or 

Fatal error: Class 'Zend_Form_Element_Multi_Checkbox' not found in /home/adamrifat/ultimateworks/forms/CreateContractorForm.php on line 28

am I doing something wrong?

I am simply writing

      $services = new Zend_Form_Element_MultiCheckbox('services');</description>
		<content:encoded><![CDATA[<p>I am having trouble with the<br />
Zend_Form_Element_MultiCheckbox() method. </p>
<p>I keep getting:<br />
Fatal error: Call to undefined method Zend_Form_Element_Checkbox::addMultiOptions() in /home/adamrifat/ultimateworks/forms/CreateContractorForm.php on line 29</p>
<p>or </p>
<p>Fatal error: Class 'Zend_Form_Element_Multi_Checkbox' not found in /home/adamrifat/ultimateworks/forms/CreateContractorForm.php on line 28</p>
<p>am I doing something wrong?</p>
<p>I am simply writing</p>
<p>      $services = new Zend_Form_Element_MultiCheckbox('services');</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20916</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 31 Mar 2008 22:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20916</guid>
		<description>Hi Dave,

In your form can't you do something like:

$tickbox = new Zend_Form_Element_Checkbox('box);

if ($value_from_database == 1) {
  $tickbox-&#62;setCheckedValue('1') 
} else {
  $tickbox-&#62;setCheckedValue('0')
}

and then set the labels etc up as normal. Or am I misunderstanding?</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>In your form can't you do something like:</p>
<p>$tickbox = new Zend_Form_Element_Checkbox('box);</p>
<p>if ($value_from_database == 1) {<br />
  $tickbox-&gt;setCheckedValue('1&#8242;)<br />
} else {<br />
  $tickbox-&gt;setCheckedValue('0&#8242;)<br />
}</p>
<p>and then set the labels etc up as normal. Or am I misunderstanding?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20912</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 31 Mar 2008 14:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20912</guid>
		<description>Hi Rob.

 I'm trying to edit data using Zend_Form. As Matthew told Basty (22/02/2008) I pull the values from my database (using Zend_Db_Table_Row), cast them to an array and pass them to populate.
 My problem is that I have a couple of columns in my database which have binary values ('0' or '1') and I want to show them in my form with a checkbox (checked = 1 and unchecked = 0). It works when I'm adding new info to my database, but when I populate the form with existing data (edit action) they always appear checked. So, how can I get them checked only if the database's value is '1'??

 Thanks!!</description>
		<content:encoded><![CDATA[<p>Hi Rob.</p>
<p> I'm trying to edit data using Zend_Form. As Matthew told Basty (22/02/2008) I pull the values from my database (using Zend_Db_Table_Row), cast them to an array and pass them to populate.<br />
 My problem is that I have a couple of columns in my database which have binary values ('0&#8242; or '1&#8242;) and I want to show them in my form with a checkbox (checked = 1 and unchecked = 0). It works when I'm adding new info to my database, but when I populate the form with existing data (edit action) they always appear checked. So, how can I get them checked only if the database's value is '1&#8242;??</p>
<p> Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hudson</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20870</link>
		<dc:creator>hudson</dc:creator>
		<pubDate>Fri, 28 Mar 2008 17:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20870</guid>
		<description>Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20869</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Fri, 28 Mar 2008 16:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2008/02/21/simple-zend_form-example/#comment-20869</guid>
		<description>Hi Hudson,

Mailing list information is available here: http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework#ContributingtoZendFramework-Subscribetotheappropriatemailinglists</description>
		<content:encoded><![CDATA[<p>Hi Hudson,</p>
<p>Mailing list information is available here: <a href="http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework#ContributingtoZendFramework-Subscribetotheappropriatemailinglists" rel="nofollow">http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework#ContributingtoZendFramework-Subscribetotheappropriatemailinglists</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
