<?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 &#8211; custom decorators</title>
	<atom:link href="http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/feed/" rel="self" type="application/rss+xml" />
	<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/</link>
	<description>Social media, online communities, interface design, ethics and feminism</description>
	<lastBuildDate>Fri, 20 Aug 2010 14:17:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cliburn M. Solano</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-226</link>
		<dc:creator>Cliburn M. Solano</dc:creator>
		<pubDate>Sat, 02 May 2009 19:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-226</guid>
		<description>oww.... tags we&#039;re no escaped. Nweiz, it should look like this:

DOB:
    Month  Day  Year

not:

    Month Day Year
DOB:</description>
		<content:encoded><![CDATA[<p>oww&#8230;. tags we&#8217;re no escaped. Nweiz, it should look like this:</p>
<p>DOB:<br />
    Month  Day  Year</p>
<p>not:</p>
<p>    Month Day Year<br />
DOB:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cliburn M. Solano</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-225</link>
		<dc:creator>Cliburn M. Solano</dc:creator>
		<pubDate>Sat, 02 May 2009 19:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-225</guid>
		<description>Hi,

Nice tutorial!! I&#039;ve tried sticking with Zend&#039;s default dt/dd tags for a &#039;Date of Birth&#039; select tag group (Month-Day-Year). What I&#039;m trying to create is like this:

DOB:


    Jan
    Feb


    01
    02


    1994
    1993



The closest solution that I got is the reverse of it:



    Jan
    Feb


    01
    02


    1994
    1993


DOB:

by adding a select element like this (month only):

       $this-&gt;addElement(&#039;select&#039;, &#039;birthday_month&#039;,

	        array(

	            &#039;multioptions&#039; 				   =&gt; $this-&gt;_createMonths(),
	        	&#039;disableLoadDefaultDecorators&#039; =&gt; true,
	        	&#039;decorators&#039; 			   =&gt; $this-&gt;_standardElementDecorator

	        )

        );

and grouping the select elements (month day year) using this display group:

        $this-&gt;addDisplayGroup(

        	array(&#039;birthday_month&#039;, &#039;birthday_day&#039;, &#039;birthday_year&#039;),
        	&#039;birthdate_data&#039;,
            array(

            	&#039;description&#039; 	               =&gt; &#039;DOB:&#039;,
            	&#039;disableLoadDefaultDecorators&#039; =&gt; true,
                &#039;decorators&#039;                   =&gt; $this-&gt;_standardGroupDecorator

            )

        );

using these decorator for the select elements:

    protected $_standardElementDecorator = array(

        &#039;ViewHelper&#039;

    );

and this decorator for the group (month day year):

    protected $_standardGroupDecorator = array(

    	&#039;FormElements&#039;,
    	array(&#039;Description&#039;, array(&#039;escape&#039; =&gt; false, &#039;tag&#039; =&gt; false)),
    	array(&#039;HtmlTag&#039;, array(&#039;tag&#039; =&gt; &#039;dd&#039;)),

    );

I know it&#039;s a mouthful for a post hehehe. If I change the order in the group decorator:

     protected $_standardGroupDecorator = array(

    	array(&#039;Description&#039;, array(&#039;escape&#039; =&gt; false, &#039;tag&#039; =&gt; false)),
        &#039;FormElements&#039;,
    	array(&#039;HtmlTag&#039;, array(&#039;tag&#039; =&gt; &#039;dd&#039;)),

    );

Alignment gets broken. Please help. I&#039;m very close.

Cliburn M. Solano
Pinoy ako</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice tutorial!! I&#8217;ve tried sticking with Zend&#8217;s default dt/dd tags for a &#8216;Date of Birth&#8217; select tag group (Month-Day-Year). What I&#8217;m trying to create is like this:</p>
<p>DOB:</p>
<p>    Jan<br />
    Feb</p>
<p>    01<br />
    02</p>
<p>    1994<br />
    1993</p>
<p>The closest solution that I got is the reverse of it:</p>
<p>    Jan<br />
    Feb</p>
<p>    01<br />
    02</p>
<p>    1994<br />
    1993</p>
<p>DOB:</p>
<p>by adding a select element like this (month only):</p>
<p>       $this-&gt;addElement(&#8217;select&#8217;, &#8216;birthday_month&#8217;,</p>
<p>	        array(</p>
<p>	            &#8216;multioptions&#8217; 				   =&gt; $this-&gt;_createMonths(),<br />
	        	&#8216;disableLoadDefaultDecorators&#8217; =&gt; true,<br />
	        	&#8216;decorators&#8217; 			   =&gt; $this-&gt;_standardElementDecorator</p>
<p>	        )</p>
<p>        );</p>
<p>and grouping the select elements (month day year) using this display group:</p>
<p>        $this-&gt;addDisplayGroup(</p>
<p>        	array(&#8217;birthday_month&#8217;, &#8216;birthday_day&#8217;, &#8216;birthday_year&#8217;),<br />
        	&#8216;birthdate_data&#8217;,<br />
            array(</p>
<p>            	&#8216;description&#8217; 	               =&gt; &#8216;DOB:&#8217;,<br />
            	&#8216;disableLoadDefaultDecorators&#8217; =&gt; true,<br />
                &#8216;decorators&#8217;                   =&gt; $this-&gt;_standardGroupDecorator</p>
<p>            )</p>
<p>        );</p>
<p>using these decorator for the select elements:</p>
<p>    protected $_standardElementDecorator = array(</p>
<p>        &#8216;ViewHelper&#8217;</p>
<p>    );</p>
<p>and this decorator for the group (month day year):</p>
<p>    protected $_standardGroupDecorator = array(</p>
<p>    	&#8216;FormElements&#8217;,<br />
    	array(&#8217;Description&#8217;, array(&#8217;escape&#8217; =&gt; false, &#8216;tag&#8217; =&gt; false)),<br />
    	array(&#8217;HtmlTag&#8217;, array(&#8217;tag&#8217; =&gt; &#8216;dd&#8217;)),</p>
<p>    );</p>
<p>I know it&#8217;s a mouthful for a post hehehe. If I change the order in the group decorator:</p>
<p>     protected $_standardGroupDecorator = array(</p>
<p>    	array(&#8217;Description&#8217;, array(&#8217;escape&#8217; =&gt; false, &#8216;tag&#8217; =&gt; false)),<br />
        &#8216;FormElements&#8217;,<br />
    	array(&#8217;HtmlTag&#8217;, array(&#8217;tag&#8217; =&gt; &#8216;dd&#8217;)),</p>
<p>    );</p>
<p>Alignment gets broken. Please help. I&#8217;m very close.</p>
<p>Cliburn M. Solano<br />
Pinoy ako</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-235</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 04 Jan 2009 20:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-235</guid>
		<description>Lovely little tutorial, Beth! This is really a confusing thing to work with, I&#039;ve found. I was having a bit of a tough time figuring out how to wrap both the label and input in a tag.</description>
		<content:encoded><![CDATA[<p>Lovely little tutorial, Beth! This is really a confusing thing to work with, I&#8217;ve found. I was having a bit of a tough time figuring out how to wrap both the label and input in a tag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unioni</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-231</link>
		<dc:creator>unioni</dc:creator>
		<pubDate>Tue, 15 Jul 2008 12:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-231</guid>
		<description>Cheese. The adult form of milk.--Richard Condon (1915--1996), U.S. novelist, A Talent For Loving, 1961</description>
		<content:encoded><![CDATA[<p>Cheese. The adult form of milk.&#8211;Richard Condon (1915&#8211;1996), U.S. novelist, A Talent For Loving, 1961</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beth Granter</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-230</link>
		<dc:creator>Beth Granter</dc:creator>
		<pubDate>Mon, 26 May 2008 14:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-230</guid>
		<description>NYC?  What makes you think I am there?  I wish!  I am working for the University of Sussex in Brighton, UK.</description>
		<content:encoded><![CDATA[<p>NYC?  What makes you think I am there?  I wish!  I am working for the University of Sussex in Brighton, UK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshteam</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-229</link>
		<dc:creator>joshteam</dc:creator>
		<pubDate>Sun, 25 May 2008 14:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-229</guid>
		<description>I just got back from vacation *hence my absence* but I&#039;ve been doing web deving since I was oh, 13? Programming for the past 5 years, mainly php. ZF for about 7-8mo. It&#039;s actually going to save you a TON of headaches by getting you feet wet with OO &amp; MVC. It may seem challenging to pick up on it being green and all, but if you were to become a procedural pro the jump would even be harder.

The one area that I am new to is blogging :) hah. So what company do you work for up in NYC?</description>
		<content:encoded><![CDATA[<p>I just got back from vacation *hence my absence* but I&#8217;ve been doing web deving since I was oh, 13? Programming for the past 5 years, mainly php. ZF for about 7-8mo. It&#8217;s actually going to save you a TON of headaches by getting you feet wet with OO &amp; MVC. It may seem challenging to pick up on it being green and all, but if you were to become a procedural pro the jump would even be harder.</p>
<p>The one area that I am new to is blogging <img src='http://bethgranter.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  hah. So what company do you work for up in NYC?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beth Granter</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-233</link>
		<dc:creator>Beth Granter</dc:creator>
		<pubDate>Thu, 15 May 2008 09:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-233</guid>
		<description>Ah right ha.  Yeah you have almost all the same widgets too.  I&#039;ve been doing PHP for about a month and zend framework for about 3 weeks!  Never done ANY programming before so it&#039;s a bit hard for me, particularly cos we&#039;re doing it MVC style.  (Not counting HTML and CSS as programming!).  What about you?</description>
		<content:encoded><![CDATA[<p>Ah right ha.  Yeah you have almost all the same widgets too.  I&#8217;ve been doing PHP for about a month and zend framework for about 3 weeks!  Never done ANY programming before so it&#8217;s a bit hard for me, particularly cos we&#8217;re doing it MVC style.  (Not counting HTML and CSS as programming!).  What about you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshteam</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-232</link>
		<dc:creator>joshteam</dc:creator>
		<pubDate>Thu, 15 May 2008 00:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-232</guid>
		<description>haha, i was talking about the blog theme! we picked the same ones. :) http://joshteam.wordpress.com is my blog. How long have you been doing php, and more importantly.. zend framework?</description>
		<content:encoded><![CDATA[<p>haha, i was talking about the blog theme! we picked the same ones. <img src='http://bethgranter.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://joshteam.wordpress.com" rel="nofollow">http://joshteam.wordpress.com</a> is my blog. How long have you been doing php, and more importantly.. zend framework?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beth Granter</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-227</link>
		<dc:creator>Beth Granter</dc:creator>
		<pubDate>Wed, 14 May 2008 12:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-227</guid>
		<description>Did I?  I got a bit of the above from somewhere but I lost where it was, and had changed it a quite bit anyway.  I&#039;ll check yours out if you tell me where it is!</description>
		<content:encoded><![CDATA[<p>Did I?  I got a bit of the above from somewhere but I lost where it was, and had changed it a quite bit anyway.  I&#8217;ll check yours out if you tell me where it is!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshteam</title>
		<link>http://bethgranter.com/blog/2008/04/zend-form-custom-decorators/comment-page-1/#comment-228</link>
		<dc:creator>joshteam</dc:creator>
		<pubDate>Tue, 13 May 2008 17:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://bethgranter.wordpress.com/?p=102#comment-228</guid>
		<description>Hey Beth, ha. You stole my design!!! :) lol just kidding, ironically enough I am writting about the same stuff. Instead of divs i do ul/lis check it out, i&#039;d love your feedback!</description>
		<content:encoded><![CDATA[<p>Hey Beth, ha. You stole my design!!! <img src='http://bethgranter.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  lol just kidding, ironically enough I am writting about the same stuff. Instead of divs i do ul/lis check it out, i&#8217;d love your feedback!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
