<?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>Sat, 18 May 2013 13:24:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[P&aacute;draic Brady's Blog: Having a bad ViewRenderer day in your ZF app?]]></title>
      <guid>http://www.phpdeveloper.org/news/7985</guid>
      <link>http://www.phpdeveloper.org/news/7985</link>
      <description><![CDATA[<p>
With the introduction of the ViewRenderer component into the Zend Framework has come all sorts of troubles for all sorts of developers. Thankfully, there's posts <a href="http://blog.astrumfutura.com/archives/290-Having-a-bad-ViewRenderer-day-in-your-ZF-app.html">like this one</a> from <i>P&aacute;draic Brady</i> that helps out with some of the more common issues people are seeing (a problem/solution approach).
</p>
<blockquote>
The ViewRenderer "action helper" is the class Zend_Controller_Action_Helper_ViewRenderer. It's primary purpose is to facilitate the automated rendering of View scripts (templates) based on the generally accepted Zend Framework conventions. It's these conventions which will cause a lot of people grief, since the previous reliance on programmers defining the template to render has likely led to inconsistent template names.
</blockquote>
<p>
Included in <a href="http://blog.astrumfutura.com/archives/290-Having-a-bad-ViewRenderer-day-in-your-ZF-app.html">the post</a> is a list of some of the common issues developers have including "ViewRenderer is enabled by default", "Inconsistent location of template files" and "Reusing template files across Controller actions". For each, he's included a "quick hit" solution to get you back on the straight and narrow road to having a nicely working Zend Framework application.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2007 09:25:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: A Tutorial Update & Extending ViewRenderer to Support Layout Templates]]></title>
      <guid>http://www.phpdeveloper.org/news/7959</guid>
      <link>http://www.phpdeveloper.org/news/7959</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has two new posts today, both revolving around the same thing - an update to the Zend Framework called the action helper ViewRenderer. The first just <a href="http://akrabat.com/2007/06/01/tutorial-140/">mentions an update</a> to his "Intro to the Zend Framework" tutorial PDF, but the other gets a little more in-depth:
</p>
<blockquote>
The Zend_Controller_Action_Helper_ViewRenderer action helper is a great bit of code that automates rendering a view template based on which action has been called. This is very useful, but renders the action template, not my layout template. To solve this, I am experimenting with extending the Zend_Controller_Action_Helper_ViewRenderer and overriding it so that it know about my layout template. I also prefer to use the view suffix "tpl.php" for my view scripts, so I've made my class automatically set my preferred view suffix.
</blockquote>
<p>
He <a href="http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/">illustrates with some code</a>, an example that shows how to tell the ViewRenderer about his "tpl.php" files and link them back to the action that's called on the URL.
</p>]]></description>
      <pubDate>Mon, 04 Jun 2007 09:33:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend Framework's MVC Introduces the ViewRenderer]]></title>
      <guid>http://www.phpdeveloper.org/news/7923</guid>
      <link>http://www.phpdeveloper.org/news/7923</link>
      <description><![CDATA[<p>
On the Zend Developer Zone, <i>Matthew Weir O'Phinney</i> has <a href="http://devzone.zend.com/node/view/id/2072">posted an announcement</a> about the latest development on the Zend Framework front - the ViewRenderer module.
</p>
<blockquote>
<p>
Yesterday, I committed a change to core in preparation for the 1.0.0RC1 release that, while breaking backwards compatibility slightly, will also greatly simplify the integration between the controller and view components.
</p>
<p>
One developer, Ralph Schindler, felt it didn't go far enough, and posted an issue in the framework issue tracker detailing an idea he had for adding more integrated View dependency injection to Zend_Controller_Action. After some thought and discussion with him, I countered with a new action helper, the ViewRenderer.
</p>
</blockquote>
<p>
This <a href="http://devzone.zend.com/node/view/id/2072">new bit of functionality</a> allows you to get rid of those pesky view objects in Controllers, set default rendering options for the controllers, let you autorender view scripts based on the current action and much more.
</p>
<p>
Check out <a href="http://devzone.zend.com/node/view/id/2072">the post</a> for some example code.
</p>]]></description>
      <pubDate>Mon, 28 May 2007 07:44:34 -0500</pubDate>
    </item>
  </channel>
</rss>
