<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>phly, boy, phly (Entries tagged as decorators)</title>
    <link>http://weierophinney.net/matthew/</link>
    <description>Ramblings on PHP, Linux, and other Geeky Topics</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.0.4 - http://www.s9y.org/</generator>
    <pubDate>Fri, 17 Apr 2009 11:31:14 GMT</pubDate>

    <image>
        <url>http://weierophinney.net/matthew/templates/matthew/img/s9y_banner_small.png</url>
        <title>RSS: phly, boy, phly - Ramblings on PHP, Linux, and other Geeky Topics</title>
        <link>http://weierophinney.net/matthew/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Creating composite elements</title>
    <link>http://weierophinney.net/matthew/archives/217-Creating-composite-elements.html</link>
            <category>PHP</category>
    
    <comments>http://weierophinney.net/matthew/archives/217-Creating-composite-elements.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=217</wfw:comment>

    <slash:comments>22</slash:comments>
    <wfw:commentRss>http://weierophinney.net/matthew/rss.php?version=2.0&amp;type=comments&amp;cid=217</wfw:commentRss>
    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    &lt;p&gt;
    In my &lt;a href=&quot;http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html&quot;&gt;last post on decorators&lt;/a&gt;,
    I had an example that showed rendering a &quot;date of birth&quot; element:
&lt;/p&gt;

&lt;div class=&quot;php&quot; style=&quot;text-align: left&quot;&gt;&lt;br /&gt;&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;element&quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$form&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;dateOfBirth&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;renderLabel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;formText&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;dateOfBirth[day]&#039;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;&#039;&lt;/span&gt;, &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;size&#039;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;maxlength&#039;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; /&lt;br /&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;formText&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;dateOfBirth[month]&#039;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;&#039;&lt;/span&gt;, &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;size&#039;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;maxlength&#039;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; /&lt;br /&gt;&amp;#160; &amp;#160; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;formText&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;dateOfBirth[year]&#039;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;&#039;&lt;/span&gt;, &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;size&#039;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;4&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;maxlength&#039;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;#160;&lt;/div&gt;

&lt;p&gt;
    This has prompted some questions about how this element might be represented
    as a &lt;code&gt;Zend_Form_Element&lt;/code&gt;, as well as how a decorator might be
    written to encapsulate this logic. Fortunately, I&#039;d already planned to
    tackle those very subjects for this post!
&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://weierophinney.net/matthew/archives/217-Creating-composite-elements.html#extended&quot;&gt;Continue reading &quot;Creating composite elements&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 13 Apr 2009 08:30:00 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/217-guid.html</guid>
    <category>decorators</category>
<category>php</category>
<category>zend framework</category>

</item>
<item>
    <title>Rendering Zend_Form decorators individually</title>
    <link>http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html</link>
            <category>PHP</category>
    
    <comments>http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=215</wfw:comment>

    <slash:comments>9</slash:comments>
    <wfw:commentRss>http://weierophinney.net/matthew/rss.php?version=2.0&amp;type=comments&amp;cid=215</wfw:commentRss>
    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    &lt;p&gt;
    In the &lt;a href=&quot;http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html&quot;&gt;previous installment&lt;/a&gt; of this series on
    &lt;code&gt;Zend_Form&lt;/code&gt; decorators, I looked at how you can combine
    decorators to create complex output. In that write-up, I noted that while
    you have a ton of flexibility with this approach, it also adds some
    complexity and overhead. In this article, I will show you how to render
    decorators individually in order to create custom markup for your form
    and/or individual elements. 
&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://weierophinney.net/matthew/archives/215-Rendering-Zend_Form-decorators-individually.html#extended&quot;&gt;Continue reading &quot;Rendering Zend_Form decorators individually&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 09 Apr 2009 09:28:00 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/215-guid.html</guid>
    <category>decorators</category>
<category>php</category>
<category>zend framework</category>

</item>
<item>
    <title>From the inside-out: How to layer decorators</title>
    <link>http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html</link>
            <category>PHP</category>
    
    <comments>http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=213</wfw:comment>

    <slash:comments>19</slash:comments>
    <wfw:commentRss>http://weierophinney.net/matthew/rss.php?version=2.0&amp;type=comments&amp;cid=213</wfw:commentRss>
    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    &lt;p&gt;
    This marks the second in an on-going series on &lt;code&gt;Zend_Form&lt;/code&gt;
    decorators.
&lt;/p&gt;

&lt;p&gt;
    You may have noticed in the &lt;a href=&quot;http://weierophinney.net/matthew/archives/212-The-simplest-Zend_Form-decorator.html&quot;&gt;previous installment&lt;/a&gt; 
    that the decorator&#039;s &lt;code&gt;render()&lt;/code&gt; method takes a single argument,
    &lt;code&gt;$content&lt;/code&gt;. This is expected to be a string.
    &lt;code&gt;render()&lt;/code&gt; will then take this string and decide to either
    replace it, append to it, or prepend it. This allows you to have a chain of
    decorators -- which allows you to create decorators that render only a
    subset of the element&#039;s metadata, and then layer these decorators to build
    the full markup for the element. 
&lt;/p&gt;

&lt;p&gt;
    Let&#039;s look at how this works in practice.
&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://weierophinney.net/matthew/archives/213-From-the-inside-out-How-to-layer-decorators.html#extended&quot;&gt;Continue reading &quot;From the inside-out: How to layer decorators&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 06 Apr 2009 08:30:00 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/213-guid.html</guid>
    <category>decorators</category>
<category>php</category>
<category>zend framework</category>

</item>
<item>
    <title>The simplest Zend_Form decorator</title>
    <link>http://weierophinney.net/matthew/archives/212-The-simplest-Zend_Form-decorator.html</link>
            <category>PHP</category>
    
    <comments>http://weierophinney.net/matthew/archives/212-The-simplest-Zend_Form-decorator.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=212</wfw:comment>

    <slash:comments>37</slash:comments>
    <wfw:commentRss>http://weierophinney.net/matthew/rss.php?version=2.0&amp;type=comments&amp;cid=212</wfw:commentRss>
    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    &lt;p&gt;
    I&#039;ve been seeing ranting and general confusion about 
    &lt;a href=&quot;http://framework.zend.com/manual/en/zend.form.html&quot;&gt;Zend_Form&lt;/a&gt; 
    decorators (as well as the occasional praises), and thought I&#039;d do a
    mini-series of blog posts showing how they work.
&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://weierophinney.net/matthew/archives/212-The-simplest-Zend_Form-decorator.html#extended&quot;&gt;Continue reading &quot;The simplest Zend_Form decorator&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 03 Apr 2009 08:30:00 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/212-guid.html</guid>
    <category>decorators</category>
<category>php</category>
<category>zend framework</category>

</item>

</channel>
</rss>