<?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: Using Zend_Form with Zend_Config</title>
	<atom:link href="http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/</link>
	<description>Developer, Gamer, Thinker</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:08:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stacey Claman</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-289</link>
		<dc:creator>Stacey Claman</dc:creator>
		<pubDate>Tue, 22 Dec 2009 21:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-289</guid>
		<description>Can you believe it? I read it twice. While I am not as proficient on this subject, I concur with your closings because they make sense. Gives Thanks and goodluck to you.</description>
		<content:encoded><![CDATA[<p>Can you believe it? I read it twice. While I am not as proficient on this subject, I concur with your closings because they make sense. Gives Thanks and goodluck to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-246</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Mon, 27 Apr 2009 07:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-246</guid>
		<description>Hi andrew, thank you, I have mailed you in detail.</description>
		<content:encoded><![CDATA[<p>Hi andrew, thank you, I have mailed you in detail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-245</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Sun, 26 Apr 2009 22:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-245</guid>
		<description>@manuscule I apologize for the late reply, I have been busy and away for a few weeks.  Anyhow, regarding your question, if you have dynamic data that needs to be loaded into the form, I think it makes the most sense to only initialize your form using default values defined within an INI.  Then, where appropriate using a model or perhaps action helper, dynamically modify the form where necessary.</description>
		<content:encoded><![CDATA[<p>@manuscule I apologize for the late reply, I have been busy and away for a few weeks.  Anyhow, regarding your question, if you have dynamic data that needs to be loaded into the form, I think it makes the most sense to only initialize your form using default values defined within an INI.  Then, where appropriate using a model or perhaps action helper, dynamically modify the form where necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-244</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Sun, 26 Apr 2009 22:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-244</guid>
		<description>Hey Mac,
Some of the text got filtered out by wordpress unfortunately, so I am not sure what the exact dilemma is.  Are you trying to define that form class using an INI file?  Or maybe trying to initialize it using an INI file?  It might be easier to email me directly regarding your question so I can see your code completely.

You can contact me at andrew@vayanis.com

Andrew</description>
		<content:encoded><![CDATA[<p>Hey Mac,<br />
Some of the text got filtered out by wordpress unfortunately, so I am not sure what the exact dilemma is.  Are you trying to define that form class using an INI file?  Or maybe trying to initialize it using an INI file?  It might be easier to email me directly regarding your question so I can see your code completely.</p>
<p>You can contact me at <a href="mailto:andrew@vayanis.com">andrew@vayanis.com</a></p>
<p>Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-243</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Fri, 24 Apr 2009 05:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-243</guid>
		<description>i think i ran out of space there dammit. sorry</description>
		<content:encoded><![CDATA[<p>i think i ran out of space there dammit. sorry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-242</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Fri, 24 Apr 2009 05:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-242</guid>
		<description>Hi There. Firstly, thank you for at last shedding light on this tutorial. I do have somewhat of a dilemma in getting group elements to work, and was wondering if you could help. I have a form class which sets out the decorators as follows:

false
  		  	)
  		),
		array(
    		&#039;HtmlTag&#039;, array(
   				&#039;tag&#039;=&gt;&#039;li&#039;
  			)
   		)
    );

    protected $_buttonElementDecorator = array(
        &#039;ViewHelper&#039;
    );

    protected $_standardGroupDecorator = array(
        &#039;FormElements&#039;, array(
        	&#039;HtmlTag&#039;, array(
        		&#039;tag&#039;=&gt;&#039;ol&#039;
    			)
    		),
 		&#039;Fieldset&#039;
    );

    protected $_buttonGroupDecorator = array(
        &#039;FormElements&#039;,
        &#039;Fieldset&#039;
    );

    protected $_noElementDecorator = array(
        &#039;ViewHelper&#039;
    );

    public function __construct($options = null)
    {
        $this-&gt;addElementPrefixPath(&#039;Application_Form_Decorator&#039;, &#039;Application/Form/Decorator/&#039;, &#039;decorator&#039;);
        $this-&gt;addElementPrefixPath(&#039;Application_Filter&#039;, &#039;Application/Filter/&#039;, &#039;filter&#039;);
        $this-&gt;addPrefixPath(&#039;Application_Form_Element&#039;, &#039;Application/Form/Element/&#039;, &#039;element&#039;);

        $this-&gt;_setupTranslation();

        parent::__construct($options);

        $this-&gt;setAttrib(&#039;accept-charset&#039;, &#039;UTF-8&#039;);
        $this-&gt;setDecorators(array(
            &#039;FormElements&#039;,
            &#039;Form&#039;
        	)
        );
    }

    protected function _setupTranslation()
    {
        if (self::getDefaultTranslator())
            return;

        $path = Bootstrap::$root . &#039;/translate/forms.php&#039;;
        $translate = new Zend_Translate(&#039;array&#039;, $path, &#039;en&#039;);
        self::setDefaultTranslator($translate);
    }
}

and then i declare the forms as follows

addElement(&#039;text&#039;, &#039;name&#039;, array(
        	&#039;decorators&#039; =&gt; $this-&gt;_standardElementDecorator , 
        	&#039;label&#039; =&gt; &#039;SubCategory Name:&#039; , 
        	&#039;attribs&#039; =&gt; array(
        		&#039;maxlength&#039; =&gt; 20
            ) , &#039;validators&#039; =&gt; array(
                array(
                	&#039;StringLength&#039; , false , array(
                        4 , 20
                        )
                    )
                ) , 
                &#039;required&#039; =&gt; true
            )
        );
        
        $this-&gt;addElement(&#039;text&#039;, &#039;description&#039;, array(
        	&#039;decorators&#039; =&gt; $this-&gt;_standardElementDecorator , 
        	&#039;label&#039; =&gt; &#039;Description:&#039; , 
        	&#039;attribs&#039; =&gt; array(
        		&#039;maxlength&#039; =&gt; 500
            ) , &#039;validators&#039; =&gt; array(
                array(
               	&#039;StringLength&#039; , false , array(
                        4 , 500
                        )
                    )
                ) , 
                &#039;required&#039; =&gt; true
            )
        );
                    
        $this-&gt;addElement(&#039;select&#039;, &#039;category_id&#039;, array(
        	&#039;decorators&#039; =&gt; $this-&gt;_standardElementDecorator , 
        	&#039;label&#039; =&gt; &#039;Category:&#039; , 
        	&#039;attribs&#039; =&gt; array(
        		&#039;validators&#039; =&gt; array(
        			&#039;NotEmpty&#039; =&gt; true
                    )
                ) , 
                &#039;multiOptions&#039; =&gt; getCategoryArray()
            )
        );
        
        $this-&gt;addDisplayGroup(array(
        	&#039;name&#039; , 
        	&#039;description&#039; , 
        	&#039;category_id&#039;
        ), 
        &#039;subcategorycreate&#039;, array(
        	&#039;disableLoadDefaultDecorators&#039; =&gt; true , &#039;decorators&#039; =&gt; $this-&gt;_standardGroupDecorator , &#039;legend&#039; =&gt; &#039;Edit SubCategory&#039;
            )
        );
        
        $this-&gt;addElement(&#039;submit&#039;, &#039;submit&#039;, array(
        	&#039;decorators&#039; =&gt; $this-&gt;_buttonElementDecorator , 
        	&#039;label&#039; =&gt; &#039;Save&#039;
            )
        );
        
        $this-&gt;addDisplayGroup(array(
        	&#039;submit&#039;
            ), 
        	&#039;subcategoryeditsubmit&#039;, array(
        		&#039;disableLoadDefaultDecorators&#039; =&gt; true , 
        		&#039;decorators&#039; =&gt; $this-&gt;_buttonGroupDecorator , 
        		&#039;class&#039; =&gt; &#039;submit&#039;
            )
        );
    }
}

but i cant get any of this to use the groupdisplay decorators properly from the ini file. any ideas?</description>
		<content:encoded><![CDATA[<p>Hi There. Firstly, thank you for at last shedding light on this tutorial. I do have somewhat of a dilemma in getting group elements to work, and was wondering if you could help. I have a form class which sets out the decorators as follows:</p>
<p>false<br />
  		  	)<br />
  		),<br />
		array(<br />
    		&#8216;HtmlTag&#8217;, array(<br />
   				&#8216;tag&#8217;=&gt;&#8217;li&#8217;<br />
  			)<br />
   		)<br />
    );</p>
<p>    protected $_buttonElementDecorator = array(<br />
        &#8216;ViewHelper&#8217;<br />
    );</p>
<p>    protected $_standardGroupDecorator = array(<br />
        &#8216;FormElements&#8217;, array(<br />
        	&#8216;HtmlTag&#8217;, array(<br />
        		&#8216;tag&#8217;=&gt;&#8217;ol&#8217;<br />
    			)<br />
    		),<br />
 		&#8216;Fieldset&#8217;<br />
    );</p>
<p>    protected $_buttonGroupDecorator = array(<br />
        &#8216;FormElements&#8217;,<br />
        &#8216;Fieldset&#8217;<br />
    );</p>
<p>    protected $_noElementDecorator = array(<br />
        &#8216;ViewHelper&#8217;<br />
    );</p>
<p>    public function __construct($options = null)<br />
    {<br />
        $this-&gt;addElementPrefixPath(&#8216;Application_Form_Decorator&#8217;, &#8216;Application/Form/Decorator/&#8217;, &#8216;decorator&#8217;);<br />
        $this-&gt;addElementPrefixPath(&#8216;Application_Filter&#8217;, &#8216;Application/Filter/&#8217;, &#8216;filter&#8217;);<br />
        $this-&gt;addPrefixPath(&#8216;Application_Form_Element&#8217;, &#8216;Application/Form/Element/&#8217;, &#8216;element&#8217;);</p>
<p>        $this-&gt;_setupTranslation();</p>
<p>        parent::__construct($options);</p>
<p>        $this-&gt;setAttrib(&#8216;accept-charset&#8217;, &#8216;UTF-8&#8242;);<br />
        $this-&gt;setDecorators(array(<br />
            &#8216;FormElements&#8217;,<br />
            &#8216;Form&#8217;<br />
        	)<br />
        );<br />
    }</p>
<p>    protected function _setupTranslation()<br />
    {<br />
        if (self::getDefaultTranslator())<br />
            return;</p>
<p>        $path = Bootstrap::$root . &#8216;/translate/forms.php&#8217;;<br />
        $translate = new Zend_Translate(&#8216;array&#8217;, $path, &#8216;en&#8217;);<br />
        self::setDefaultTranslator($translate);<br />
    }<br />
}</p>
<p>and then i declare the forms as follows</p>
<p>addElement(&#8216;text&#8217;, &#8216;name&#8217;, array(<br />
        	&#8216;decorators&#8217; =&gt; $this-&gt;_standardElementDecorator ,<br />
        	&#8216;label&#8217; =&gt; &#8216;SubCategory Name:&#8217; ,<br />
        	&#8216;attribs&#8217; =&gt; array(<br />
        		&#8216;maxlength&#8217; =&gt; 20<br />
            ) , &#8216;validators&#8217; =&gt; array(<br />
                array(<br />
                	&#8216;StringLength&#8217; , false , array(<br />
                        4 , 20<br />
                        )<br />
                    )<br />
                ) ,<br />
                &#8216;required&#8217; =&gt; true<br />
            )<br />
        );</p>
<p>        $this-&gt;addElement(&#8216;text&#8217;, &#8216;description&#8217;, array(<br />
        	&#8216;decorators&#8217; =&gt; $this-&gt;_standardElementDecorator ,<br />
        	&#8216;label&#8217; =&gt; &#8216;Description:&#8217; ,<br />
        	&#8216;attribs&#8217; =&gt; array(<br />
        		&#8216;maxlength&#8217; =&gt; 500<br />
            ) , &#8216;validators&#8217; =&gt; array(<br />
                array(<br />
               	&#8216;StringLength&#8217; , false , array(<br />
                        4 , 500<br />
                        )<br />
                    )<br />
                ) ,<br />
                &#8216;required&#8217; =&gt; true<br />
            )<br />
        );</p>
<p>        $this-&gt;addElement(&#8217;select&#8217;, &#8216;category_id&#8217;, array(<br />
        	&#8216;decorators&#8217; =&gt; $this-&gt;_standardElementDecorator ,<br />
        	&#8216;label&#8217; =&gt; &#8216;Category:&#8217; ,<br />
        	&#8216;attribs&#8217; =&gt; array(<br />
        		&#8216;validators&#8217; =&gt; array(<br />
        			&#8216;NotEmpty&#8217; =&gt; true<br />
                    )<br />
                ) ,<br />
                &#8216;multiOptions&#8217; =&gt; getCategoryArray()<br />
            )<br />
        );</p>
<p>        $this-&gt;addDisplayGroup(array(<br />
        	&#8216;name&#8217; ,<br />
        	&#8216;description&#8217; ,<br />
        	&#8216;category_id&#8217;<br />
        ),<br />
        &#8217;subcategorycreate&#8217;, array(<br />
        	&#8216;disableLoadDefaultDecorators&#8217; =&gt; true , &#8216;decorators&#8217; =&gt; $this-&gt;_standardGroupDecorator , &#8216;legend&#8217; =&gt; &#8216;Edit SubCategory&#8217;<br />
            )<br />
        );</p>
<p>        $this-&gt;addElement(&#8217;submit&#8217;, &#8217;submit&#8217;, array(<br />
        	&#8216;decorators&#8217; =&gt; $this-&gt;_buttonElementDecorator ,<br />
        	&#8216;label&#8217; =&gt; &#8216;Save&#8217;<br />
            )<br />
        );</p>
<p>        $this-&gt;addDisplayGroup(array(<br />
        	&#8217;submit&#8217;<br />
            ),<br />
        	&#8217;subcategoryeditsubmit&#8217;, array(<br />
        		&#8216;disableLoadDefaultDecorators&#8217; =&gt; true ,<br />
        		&#8216;decorators&#8217; =&gt; $this-&gt;_buttonGroupDecorator ,<br />
        		&#8216;class&#8217; =&gt; &#8217;submit&#8217;<br />
            )<br />
        );<br />
    }<br />
}</p>
<p>but i cant get any of this to use the groupdisplay decorators properly from the ini file. any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manuscule</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-239</link>
		<dc:creator>manuscule</dc:creator>
		<pubDate>Tue, 14 Apr 2009 15:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-239</guid>
		<description>how i can insert a dynamic data list  in a html select  in an ini file ?</description>
		<content:encoded><![CDATA[<p>how i can insert a dynamic data list  in a html select  in an ini file ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-238</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Tue, 14 Apr 2009 14:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-238</guid>
		<description>Sorry, but I am not sure what the question is?</description>
		<content:encoded><![CDATA[<p>Sorry, but I am not sure what the question is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manuscule</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-237</link>
		<dc:creator>manuscule</dc:creator>
		<pubDate>Tue, 14 Apr 2009 10:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-237</guid>
		<description>And for an element select in a ini file ??</description>
		<content:encoded><![CDATA[<p>And for an element select in a ini file ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/comment-page-1/#comment-235</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Thu, 19 Mar 2009 05:22:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-235</guid>
		<description>@ Jesse

I know I have done that before, but I can&#039;t access the project from where I am now.  However, I believe its along the lines of schoolForm.elements.status.options.disable = &quot;disable&quot;</description>
		<content:encoded><![CDATA[<p>@ Jesse</p>
<p>I know I have done that before, but I can&#8217;t access the project from where I am now.  However, I believe its along the lines of schoolForm.elements.status.options.disable = &#8220;disable&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
