<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ThinkRobot &#187; forms</title>
	<atom:link href="http://think-robot.com/tag/forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://think-robot.com</link>
	<description>Design &#38; Development Blog</description>
	<lastBuildDate>Sun, 22 Apr 2012 23:58:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Zend Framework Decorators &#8211; Labels and Checkboxes</title>
		<link>http://think-robot.com/2009/02/zend-framework-decorators-labels-and-checkboxes/</link>
		<comments>http://think-robot.com/2009/02/zend-framework-decorators-labels-and-checkboxes/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 11:16:12 +0000</pubDate>
		<dc:creator>Joanna</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.think-robot.com/?p=20</guid>
		<description><![CDATA[Very often it is the smallest things that annoy us the most. It took me a while to figure out why the placement parameter was not changing anything. I started of with the following: 'decorators' =&#62; array( array('Label'), array('ViewHelper') ) Unfortunately switching the order between Label and ViewHelper did not change the order of elements. [...]]]></description>
			<content:encoded><![CDATA[<p>Very often it is the smallest things that annoy us the most. It took me a while to figure out why the placement parameter was not changing anything. I started of with the following:</p>
<pre>'decorators' =&gt; array(
	array('Label'),
	array('ViewHelper')
)</pre>
<p><span id="more-20"></span><br />
Unfortunately switching the order between Label and ViewHelper did not change the order of elements. So I found this parameter called &#8220;placement&#8221;.</p>
<pre>'decorators' =&gt; array(
	array('Label', array('placement' =&gt; 'APPEND')),
	array('ViewHelper')
)</pre>
<p>It can take two values: PREPEND or APPEND. At this point however I did not realize that now the order of Label and ViewHelper did matter. Only the order below will make any difference to the html elements order.</p>
<pre>'decorators' =&gt; array(
	array('ViewHelper'),
	array('Label', array('placement' =&gt; 'APPEND'))
)</pre>
<p>This finally resulted in the desired effect.</p>
<div id="crp_related"><h2>Related Articles:</h2><ul><li><a href="http://think-robot.com/2009/07/autloading-modular-forms-models-in-zend-framework-18/" rel="bookmark">Autloading modular forms & models in Zend Framework 1.8</a></li><li><a href="http://think-robot.com/2009/04/zend_db_select-multiple-table-joins-explained/" rel="bookmark">Zend_Db_Select multiple table joins explained</a></li><li><a href="http://think-robot.com/2009/05/doctrine-many-to-many-with-extra-fields/" rel="bookmark">Doctrine Many To Many With Extra Fields</a></li><li><a href="http://think-robot.com/2008/11/wordpress-nextgen-gallery-tweak/" rel="bookmark">WordPress NextGen gallery tweak</a></li><li><a href="http://think-robot.com/2008/12/using-zend_mail-and-google-smtp-to-send-emails/" rel="bookmark">Using Zend_Mail and Google SMTP to send emails</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://think-robot.com/2009/02/zend-framework-decorators-labels-and-checkboxes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

