<?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: Zend_Form_Element_Multi &#8211; Tips and Tricks</title>
	<atom:link href="http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/</link>
	<description>{web developer, entrepreneur }</description>
	<lastBuildDate>Thu, 05 Jan 2012 07:01:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Henryk</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-88</link>
		<dc:creator>Henryk</dc:creator>
		<pubDate>Tue, 05 May 2009 23:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-88</guid>
		<description>Hi Jeremy.

I&#039;m also working on a form where the user can add new crew members to the form via Ajax and i would be interested on hearing how to sort this thing out, if you or someone get this solved. I haven&#039;t started this bit yet, but it will be coming in a couple of weeks time. 

I got a multiselect populated ok (which is an array type), but unfortunately did&#039;t get populated text fields with name attributes like director[] distributor[]. The elements have been stated in my form with &#039;isArray&#039; =&gt; true.

Been thinking of bypassing the problem by using the multiselects and modifying the UI with Javascript to get the desired look and feel, if no solution is found.</description>
		<content:encoded><![CDATA[<p>Hi Jeremy.</p>
<p>I&#8217;m also working on a form where the user can add new crew members to the form via Ajax and i would be interested on hearing how to sort this thing out, if you or someone get this solved. I haven&#8217;t started this bit yet, but it will be coming in a couple of weeks time. </p>
<p>I got a multiselect populated ok (which is an array type), but unfortunately did&#8217;t get populated text fields with name attributes like director[] distributor[]. The elements have been stated in my form with &#8216;isArray&#8217; =&gt; true.</p>
<p>Been thinking of bypassing the problem by using the multiselects and modifying the UI with Javascript to get the desired look and feel, if no solution is found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexwebmaster</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-49</link>
		<dc:creator>Alexwebmaster</dc:creator>
		<pubDate>Tue, 03 Mar 2009 08:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-49</guid>
		<description>Hello webmaster 
I would like to share with you a link to your site 
write me here preonrelt@mail.ru</description>
		<content:encoded><![CDATA[<p>Hello webmaster<br />
I would like to share with you a link to your site<br />
write me here <a href="mailto:preonrelt@mail.ru">preonrelt@mail.ru</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-18</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Wed, 24 Dec 2008 15:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-18</guid>
		<description>Hey Ronny,

Thanks for dropping by!  Check out my latest post for an answer to your question about conditional validation.  I figured it would be easier to post about it than try to include it all here.

Hopefully the post helps more than it hurts ;)

JK</description>
		<content:encoded><![CDATA[<p>Hey Ronny,</p>
<p>Thanks for dropping by!  Check out my latest post for an answer to your question about conditional validation.  I figured it would be easier to post about it than try to include it all here.</p>
<p>Hopefully the post helps more than it hurts <img src='http://www.jeremykendall.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>JK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronny stalker</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-17</link>
		<dc:creator>ronny stalker</dc:creator>
		<pubDate>Tue, 23 Dec 2008 12:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-17</guid>
		<description>and, following on from my previous comment, here&#039;s my example code: 
(it was far too long to add as a comment)

http://www.eatmybusiness.com/code_downloads/zend_form_Quick_Form_of_Server_Vars.txt</description>
		<content:encoded><![CDATA[<p>and, following on from my previous comment, here&#8217;s my example code:<br />
(it was far too long to add as a comment)</p>
<p><a href="http://www.eatmybusiness.com/code_downloads/zend_form_Quick_Form_of_Server_Vars.txt" rel="nofollow">http://www.eatmybusiness.com/code_downloads/zend_form_Quick_Form_of_Server_Vars.txt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronny stalker</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-16</link>
		<dc:creator>ronny stalker</dc:creator>
		<pubDate>Tue, 23 Dec 2008 12:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-16</guid>
		<description>Hi jeremy,

Re: Do you have any Zend_Form tips or tricks that you’d like to share?

I have only been using Zend Form for a couple of days - so forgive me if this is a dud tip. I found it useful anyway.
---
The Tip:

When developing, sometimes i just want to play around with my control code and toggle field names, control actions etc.

I just wanted to quickly pass all the variables around from page to page while i experiment.
---
A Quick way of generating a form that simply renders the SERVER Request Variables.

Create a subclass of Zend_Form interface like: 

//set up the form
$form_obj = new my_Form_SimpleREQUEST_VARSmimic();
//set up the variables 
$form_obj-&gt;setupREQUESTVarsAsFields();
//render
$form_obj-&gt;render();

---
I will post the code example in a separate comment in case its too long to include here.</description>
		<content:encoded><![CDATA[<p>Hi jeremy,</p>
<p>Re: Do you have any Zend_Form tips or tricks that you’d like to share?</p>
<p>I have only been using Zend Form for a couple of days &#8211; so forgive me if this is a dud tip. I found it useful anyway.<br />
&#8212;<br />
The Tip:</p>
<p>When developing, sometimes i just want to play around with my control code and toggle field names, control actions etc.</p>
<p>I just wanted to quickly pass all the variables around from page to page while i experiment.<br />
&#8212;<br />
A Quick way of generating a form that simply renders the SERVER Request Variables.</p>
<p>Create a subclass of Zend_Form interface like: </p>
<p>//set up the form<br />
$form_obj = new my_Form_SimpleREQUEST_VARSmimic();<br />
//set up the variables<br />
$form_obj-&gt;setupREQUESTVarsAsFields();<br />
//render<br />
$form_obj-&gt;render();</p>
<p>&#8212;<br />
I will post the code example in a separate comment in case its too long to include here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ronny stalker</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-15</link>
		<dc:creator>ronny stalker</dc:creator>
		<pubDate>Mon, 22 Dec 2008 02:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-15</guid>
		<description>Wow i never knew you could use the plus operator like that - I must have skipped over that on at php school - thanks

I was having the &quot;Choose&quot; option problem and thats a neat solution.

A question:
I need to do different validations for field A depending on the value of field B and (possibly depending on a variable that is not in the form at all - C ).

in this kind of logic:

if (B ==1)
 {
 validator_B(A);
 }
elseif (C)
 {
 validator_C(A);
 }
else
 {
 validator_Default(A);
 }


I understand that validators get a secondary argument called $context - which can be used to check values of other fields, but how can a validator get knowledge of other variables in the environment.

Perhaps this stinks of decoupling gone off - so i may be barking up the wrong tree.

The callback validator looks promising.

I&#039;m not sure if Zend_Form should even be used for these kind of tasks.

Any tips?</description>
		<content:encoded><![CDATA[<p>Wow i never knew you could use the plus operator like that &#8211; I must have skipped over that on at php school &#8211; thanks</p>
<p>I was having the &#8220;Choose&#8221; option problem and thats a neat solution.</p>
<p>A question:<br />
I need to do different validations for field A depending on the value of field B and (possibly depending on a variable that is not in the form at all &#8211; C ).</p>
<p>in this kind of logic:</p>
<p>if (B ==1)<br />
 {<br />
 validator_B(A);<br />
 }<br />
elseif (C)<br />
 {<br />
 validator_C(A);<br />
 }<br />
else<br />
 {<br />
 validator_Default(A);<br />
 }</p>
<p>I understand that validators get a secondary argument called $context &#8211; which can be used to check values of other fields, but how can a validator get knowledge of other variables in the environment.</p>
<p>Perhaps this stinks of decoupling gone off &#8211; so i may be barking up the wrong tree.</p>
<p>The callback validator looks promising.</p>
<p>I&#8217;m not sure if Zend_Form should even be used for these kind of tasks.</p>
<p>Any tips?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-11</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Thu, 04 Dec 2008 20:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-11</guid>
		<description>Hey David,

Thanks for dropping by!  I&#039;m about to start working on the same thing myself.  I&#039;ll write it up when I get it worked out.  If you get it worked out before you see a write-up here, drop me a line.</description>
		<content:encoded><![CDATA[<p>Hey David,</p>
<p>Thanks for dropping by!  I&#8217;m about to start working on the same thing myself.  I&#8217;ll write it up when I get it worked out.  If you get it worked out before you see a write-up here, drop me a line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.jeremykendall.net/2008/12/04/zend_form_element_multi-tips-and-tricks/comment-page-1/#comment-10</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 04 Dec 2008 17:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremykendall.net/?p=87#comment-10</guid>
		<description>I don&#039;t have a tip, but a question.  

I have a couple of apps where I can dynamically add new text or select inputs to the form.  These element names have [] so they come into the app as an array.  I have been trying to figure out how to get Zend_Form to work with this sort of situation.  I was not able to figure out how to make Zend_Form correctly output my initial form elements (coming out of the database).  I was also not able to figure out how to make it validate numerous selects and text elements and use &quot;something[]&quot; as the elements&#039; names.

I don&#039;t know if I&#039;ve explained the situation well enough, but if I have, any ideas?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have a tip, but a question.  </p>
<p>I have a couple of apps where I can dynamically add new text or select inputs to the form.  These element names have [] so they come into the app as an array.  I have been trying to figure out how to get Zend_Form to work with this sort of situation.  I was not able to figure out how to make Zend_Form correctly output my initial form elements (coming out of the database).  I was also not able to figure out how to make it validate numerous selects and text elements and use &#8220;something[]&#8221; as the elements&#8217; names.</p>
<p>I don&#8217;t know if I&#8217;ve explained the situation well enough, but if I have, any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

