<?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, 09 Jul 2008 07:21:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Zend Framework App Tutorial - Part 9: Zend_Vew and Displaying Blog Entries]]></title>
      <guid>http://www.phpdeveloper.org/news/10272</guid>
      <link>http://www.phpdeveloper.org/news/10272</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has posted <a href="http://blog.astrumfutura.com/archives/370-Example-Zend-Framework-Blog-Application-Tutorial-Part-9-Exploring-Zend_View-and-Displaying-Blog-Entries.html">part seven</a> of his series on building a blogging application with the Zend Framework as a base. This time he's working on the output of the entries - using Zend_View to standardize the look and feel.
</p>
<blockquote>
In previous parts we've been using View Helpers without even noticing it. Zend_Form doesn't generate forms by itself, rather it delegates most of the HTML generation to a set of View Helpers like Zend_View_Helper_Form. The problem with such output, is that View Helpers can only generate XHTML 1.0 Strict output if we actually inform them of the standard to use. [...] What we should do, is make the Doctype of our View more dynamic. This is achievable by using the Doctype View Helper.
</blockquote>
<p>
<i>Padraic</i> talks about the different parts of the View layer in the framework (helpers, partials, placeholders) that were mentioned in previous parts. He shows how to change up his current setup to work with the Doctype View Helper to change the view and make it UTF-8 compliant.
</p>
<p>
He shows the changes to the bootstrap file, how he's grabbing the entries from the database and how he pushes that out to the view to be displayed. He also creates a custom view helper to create the entry URLs for each of the posts (Wordpress users out there, these are the stubs). 
</p>]]></description>
      <pubDate>Tue, 27 May 2008 07:05:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: View Helpers in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/10068</guid>
      <link>http://www.phpdeveloper.org/news/10068</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/3412-View-Helpers-in-Zend-Framework">posted a new tutorial</a> (from <i>Matthew Weier O'Phinney</i>) about a handy feature of the Zend Framework's view layer - view helpers that can be added in and reused across an application to do some pretty cool stuff.
</p>
<blockquote>
A View Helper is simply a class that follows particular naming conventions, When attached to a view object, you can call the helper as if it were a method of the view object itself. The View object retains helper instances, which means that they retain states between calls.
</blockquote>
<p>
View helpers can be use to do things like manipulate view data for more complex operations and carrying over data between two views, limiting the number of fetches that have to be done. He shows how to create a simple helper - My_Helper_FooBar - that just appends "fooBar " to whatever's passed in. He also talks about some of the default view helpers (like form fields), partials, the doctype() helper, capturing/caching content to be used later and the use of placeholders.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 14:38:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: Using Zend_View Placeholders to Your Advantage]]></title>
      <guid>http://www.phpdeveloper.org/news/9824</guid>
      <link>http://www.phpdeveloper.org/news/9824</link>
      <description><![CDATA[<p>
On his blog today, <i>Matthew Weir O'Phinney</i> <a href="http://weierophinney.net/matthew/archives/163-Using-Zend_View-Placeholders-to-Your-Advantage.html">offers some helpful advice</a> about using the placeholder functions of the Zend_View component (like headScript or headLink) to make coding in the Zend Framework that much easier:
</p>
<blockquote>
Somebody asked for some examples of how I use the headLink(), headScript(), and other placeholder helpers, so I thought I'd take a crack at that today.
</blockquote>
<p>
He looks at the different categories of placeholders and illustrates with examples of each: Doctype Hinting, Content Aggregation, Capturing Content and finally, putting them all together into a custom layout that uses docType, headLink, headStyle and headScript.
</p>]]></description>
      <pubDate>Wed, 19 Mar 2008 12:04:05 -0500</pubDate>
    </item>
  </channel>
</rss>
