<?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>Mon, 20 May 2013 16:59:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen's Blog: A form in your layout]]></title>
      <guid>http://www.phpdeveloper.org/news/15261</guid>
      <link>http://www.phpdeveloper.org/news/15261</link>
      <description><![CDATA[<p>
If you've ever wanted to have a form that stuck with every page of your Zend Framework application, <i>Rob Allen</i> might just <a href="http://akrabat.com/zend-framework/a-form-in-your-layout/">have your solution</a> in his latest blog post.
</p>
<blockquote>
I recently received an email asking for my advice about how to handle a form that appears on every page. I want to add a newsletter sign up box to layout.phtml so it will appear on every page. The layout->content() comes from several different action controllers... So how do I handle the newsletter sign up? I thought that the answer is long-winded enough to be worth writing a blog post about. One way to do this is to use a action helper, so let's build a simple application to show this solution.
</blockquote>
<p>
He walks you through the creation of the simplest part first - the form that will live inside of the view helper. He chose a signup type of form with a username, email and submit button. He helps you create an action helper and the view helpers to help inject the form into the layout of each page. Then, with a simple call to "$this->signupForm()" you can drop it in anywhere in the layout.
</p>]]></description>
      <pubDate>Mon, 11 Oct 2010 12:11:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Bas de Nooijer's Blog: Controlling Varnish ESI inside your application]]></title>
      <guid>http://www.phpdeveloper.org/news/14802</guid>
      <link>http://www.phpdeveloper.org/news/14802</link>
      <description><![CDATA[<p>
As is <a href="http://devzone.zend.com/article/12319-Varnish-Edge-Side-Includes">mentioned</a> on the Zend Developer Zone, there's a new post from <i>Bas de Nooijer</i> about a cool feature of <a href="http://varnish-cache.org/">Varnish</a> - Edge Side Includes - and <a href="http://blog.raspberry.nl/2010/07/05/controlling-varnish-esi-inside-your-application/">how you can control them</a>.
</p>
<blockquote>
For me one of the best features of Varnish is ESI (Edge Side Includes).  It allows you to combine elements with different lifetimes into a single page. This way you don't need to regenerate a complete page as soon as a news listing somewhere on the page changes. And you can still cache pages while displaying user-specific information somewhere on the page. This lowers the load on your application even further and it can also help in simplifying your application, by focussing purely on the content of the page and loading all other elements via ESI.
</blockquote>
<p>
He talks about the upsides and downsides to using the technique and what to avoid when implementing it in your Varnish config. One solution to the problem is sending an ESI "marker" to tell Varnish that a certain bit of content needs to be updated. He shows how to put it to use with a Zend Framework view helper that adds a special "esi" tag to the page when the content for a URL needs to be updated.
</p>]]></description>
      <pubDate>Fri, 16 Jul 2010 08:50:57 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brandon Savage's Blog: Making Zend_Navigation Useful]]></title>
      <guid>http://www.phpdeveloper.org/news/14274</guid>
      <link>http://www.phpdeveloper.org/news/14274</link>
      <description><![CDATA[<p>
As a follow-up to his <a href="http://www.phpdeveloper.org/news/14270">previous post</a> on Zend_Navigation <i>Brandon Savage</i> takes a look at how to <a href="http://www.brandonsavage.net/making-zend_navigation-useful/">make it more useful</a> by using some of the methods that come bundled with the component.
</p>
<blockquote>
This is certainly wonderful and exciting, but the reality is that for the most part, Zend_Navigation is a pretty useless component of Zend Framework until you have a way to get the data out  of the structure you've built. And since navigation is a component of most people's views, we have a view helper to give us the tools we need.
</blockquote>
<p>
This view helper, "navigation", gives you some interesting functionality including what he illustrates - fineOneBy, htmlify, building breadcrumbs, menu generation and a way to finally render the menu as output. You can see more of the options/methods in the <a href="http://framework.zend.com/manual/en/zend.view.helpers.html">Zend Framework manual</a> for the helper.
</p>]]></description>
      <pubDate>Wed, 31 Mar 2010 09:18:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Starting with Zend Framework - part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/11250</guid>
      <link>http://www.phpdeveloper.org/news/11250</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has posted the <a href="http://robertbasic.com/blog/2008/10/20/starting-with-zend-framework-part-2/">second part</a> of his introduction to the Zend Framework series (here's <a href="http://www.phpdeveloper.org/news/11208">part one</a>).
</p>
<blockquote>
This post is the second part of my introductory text on Zend Framework, <a href="http://robertbasic.com/blog/2008/10/07/starting-with-zend-framework/">Starting with Zend Framework</a>. This time I cover the basics about controllers, actions, view scripts and view helpers. On request routing and the Front Controller I will write one (or more) big post(s), so this part won't be explained now. I will also skip explaining the models; they deserve their own post.
</blockquote>
<p>
He goes a step further and looks at Controllers - what they are and some intro steps to you making one of your own - and the parts around them, the views, actions and view helpers.
</p>
]]></description>
      <pubDate>Mon, 20 Oct 2008 13:54:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: Simplifying Zend_View_Helper_Url ]]></title>
      <guid>http://www.phpdeveloper.org/news/10594</guid>
      <link>http://www.phpdeveloper.org/news/10594</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i> has <a href="http://ishouldbecoding.com/2008/07/12/simplifying-zend_view_helper_url">posted a quick tutorial</a> where he aims to simplify some of the functionality that the Zend Framework's Zend_View_Helper_Url view helper has to offer.
</p>
<blockquote>
When I first began working with <a href="http://framework.zend.com/manual/en/zend.view.html">Zend_View</a> on a project at work, I noticed that the <a href="http://framework.zend.com/apidoc/core/Zend_View/Helper/Zend_View_Helper_Url.html">Url view helper</a> was a bit of a pain to use. It was rare that I didn't want to specify one or more of the action, controller, and module in my call along with the other <a href="http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.standard">Route assembly parameters</a>. 
</blockquote>
<p>
He wanted to be able to get around some limitations of the helper - use arrays to help label the calls more readable and to be able to refer to other actions in the same controller. He actually made another view helper, one that extends Zend_View_Helper_Url with a few optional parameters including the extra data he wanted in an array. You can see the code at the bottom of <a href="http://ishouldbecoding.com/2008/07/12/simplifying-zend_view_helper_url">his post</a> (he credits <a href="http://fishhead2567.wordpress.com/2008/07/08/extending-zend-url/">Andy Best</a> with development on the idea too).
</p>]]></description>
      <pubDate>Mon, 14 Jul 2008 08:48:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Zend Framework Blog App Tutorial - Addendum #2: Revised Design, Date Helper]]></title>
      <guid>http://www.phpdeveloper.org/news/10317</guid>
      <link>http://www.phpdeveloper.org/news/10317</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has posted the <a href="http://blog.astrumfutura.com/archives/374-Zend-Framework-Blog-Application-Tutorial-Addendum-2-Revised-Blog-Design,-Date-Format-View-Helper.html">second addendum</a> to his series on creating a blogging application with the Zend Framework. It covers a revised blog design and the creation of a date format view helper.
</p>
<blockquote>
In the second of my Addendum posts which revise previous entries either for missing functionality, progressive changes and enhancements, or reader comments, I revise the design and styling of the blog application. There's not a lot to discuss in this entry since the majority of changes are to the HTML and CSS of the blog.
</blockquote>
<p>
He <a href="http://blog.astrumfutura.com/archives/374-Zend-Framework-Blog-Application-Tutorial-Addendum-2-Revised-Blog-Design,-Date-Format-View-Helper.html">includes</a> the phtml template files for the updates to the blog's layout along with the code for the new view helper (and tips on making them global and optimizing them).
</p>]]></description>
      <pubDate>Mon, 02 Jun 2008 10:21:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: Complex Web Pages with the Zend Framework?]]></title>
      <guid>http://www.phpdeveloper.org/news/9907</guid>
      <link>http://www.phpdeveloper.org/news/9907</link>
      <description><![CDATA[<p>
On his blog, <i>Padraic Brady</i> <a href="http://blog.astrumfutura.com/archives/281-Complex-Web-Pages-with-the-Zend-Framework.html">talks about</a> the creation of custom web pages (in the Zend Framework) with the help of the Zend_View enhancements that have been introduced lately.
</p>
<blockquote>
With the inclusion of Zend_View Enhanced as first documented, discussed and publicized in this blog series, in the Zend Framework as of 1.5.0 I'd like to thank everyone involved in the process. [...] The main problem of a complex View, is that the current Controller is only aware of a subset of its own required Model (data) and the current View. So how do do you get the View to include extra sections - for example, details from Technorati for your blog - which are common to ALL pages?
</blockquote>
<p>
Normally, a call to _forward() would have been the norm, but this was more often overly complex for what the developer wanted to do. The new Composite View and View Helpers seem to be the remedy. They make it simpler to grab that information and pull it in without the need to make a whole other framework request to do so.
</p>]]></description>
      <pubDate>Thu, 03 Apr 2008 12:04:13 -0500</pubDate>
    </item>
  </channel>
</rss>
