<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 05:19:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[P&aacute;draic Brady's Blog: Complex Views with the Zend Framework - Pt 5: The Two-Step View Pattern]]></title>
      <guid>http://www.phpdeveloper.org/news/7912</guid>
      <link>http://www.phpdeveloper.org/news/7912</link>
      <description><![CDATA[<p>
<i>P&aacute;draic Brady</i> is back today with the <a href="http://blog.astrumfutura.com/archives/288-Complex-Views-with-the-Zend-Framework-Part-5-The-Two-Step-View-Pattern.html">latest installment</a> (part 5!) of his look at complex views in the Zend Framework. This time, her focuses on something called the Two-Step Pattern - a pattern similar to the Layouts pattern.
</p>
<blockquote>
Part 5 of our series takes a small time-out from approaching a Composite View solution to reusable Views to take a peek at a simpler approach useful for simpler types of web applications. As we've discussed previously Composite Views allow the nesting of reusable View elements, effectively building a View based on a hierarchy of Views. But often there are simpler solutions to simpler problems. One such solution is the Two-Step View pattern, sometimes called Layouts if implemented in a specific way (as we do below!).
</blockquote>
<p>
He gives the example of a simple website that needs a header and footer on every page. Rather than having to duplicate the header/footer calls across all of the pages, the Layout (Step-Two) pattern defines a single template that contains the header and footer but also uses a "main" area where the content is dynamically inserted.
</p>
<p>
He <a href="http://blog.astrumfutura.com/archives/288-Complex-Views-with-the-Zend-Framework-Part-5-The-Two-Step-View-Pattern.html">includes a full code example</a> to help illustrate the point - a class, Zps_View, that is fed the path to the layouts and the layout files to use before rendering.
</p>]]></description>
      <pubDate>Thu, 24 May 2007 08:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Understanding the Zend Framework (Parts 5 & 6)]]></title>
      <guid>http://www.phpdeveloper.org/news/6114</guid>
      <link>http://www.phpdeveloper.org/news/6114</link>
      <description><![CDATA[<p>
The IBM developerWorks site has continued on with its "Understanding the Zend Framework" series with spotlights on two new bits of functionality - creating PDFs and sending emails from inside the framework.
</p>
<p>
In <a href="http://www-128.ibm.com/developerworks/edu/os-dw-os-php-zend5.html">this part of the series</a> (part 5) they show how to:
<ul>
<li>create PDFs
<li>use positioning in adding text, graphics, and shapes to the document
<li>manage long blocks of text
<li>stream out a dynamic PDF to the browser
<li>add information to an existing PDF document
</ul>
</p>
<p>
<a href="http://www-128.ibm.com/developerworks/library/os-php-zend6/index.html">Part six</a> picks up where the previous part left off and includes information on working with emails in the Zend Frameork. They look at the Zend_Mail component and, making some minor changes to the application they've been constructing (the feed reader). They create an email notification to the user when a feed has been updated.
</p>
<p>
Code examples and the source code for both of these sections are provided.
</p>]]></description>
      <pubDate>Wed, 23 Aug 2006 07:50:01 -0500</pubDate>
    </item>
  </channel>
</rss>
