<?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>Fri, 24 May 2013 14:40:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[VG Tech Blog: Lazy Loading Resources with Zend Framework Bootstrap]]></title>
      <guid>http://www.phpdeveloper.org/news/18037</guid>
      <link>http://www.phpdeveloper.org/news/18037</link>
      <description><![CDATA[<p>
On the VG Tech blog today <i>Andr&eacute; Roaldseth</i> has a new post showing how to <a href="http://tech.vg.no/2012/06/01/lazy-loading-resources-with-zend-framework-bootstrap/">lazy load in the Zend Framework bootstrap</a> using two handy methods you can drop into your applications initialization.
</p>
<blockquote>
The Bootstrapping process in Zend Framework isn't perfect. You'll often end up bootstrapping a lot of resources that you don't need to complete the request. Depending on the resources this can be really expensive and hurt your overall performance. The worst kind are resources that open connections to external services [...], even worse, if the services are down they will end up blocking the execution. 
</blockquote>
<p>
Using his modified "getResource" and "lazyload" methods, he shows you how to modify your resource requests to put them in a temporary state that is only initialized when the resource is needed. You can find the code for this example <a href="https://gist.github.com/2843053">in this gist</a>.
</p>]]></description>
      <pubDate>Fri, 01 Jun 2012 14:48:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: PHP Closures as View Helpers: Lazy-Loading File Data]]></title>
      <guid>http://www.phpdeveloper.org/news/17466</guid>
      <link>http://www.phpdeveloper.org/news/17466</link>
      <description><![CDATA[<p>
In the second part of their look at using closures in PHP as view helpers, DevShed improves upon <a href="http://phpdeveloper.org/news/17446">their original code</a> by adding some additional classes and <a href="http://www.devshed.com/c/a/PHP/PHP-Closures-as-View-Helpers-LazyLoading-File-Data/">using them in the closures</a>.
</p>
<blockquote>
The best way to show you how using anonymous functions can help you to develop more efficient OO applications is with some functional, hands-on examples. With this idea in mind, in the installment that preceded this one, I implemented an extendable template system. This system could spawn view objects and render the template files associated with these objects.
</blockquote>
<p>
In this second part of the (two-part) series they include "Serializer" and "FileHandler" classes and show how to use them inside of the closures to lazy-load in data from an external file and work with it as serialized content.
</p>]]></description>
      <pubDate>Mon, 30 Jan 2012 13:08:28 -0600</pubDate>
    </item>
  </channel>
</rss>
