For the longest time, Zend Framework hasn&rsquo;t had the strongest support for command-line tooling and scaffolding. However, in recent times, that&rsquo;s all changed. Come find out how to use Expressive&rsquo;s new tooling support to create modules and middleware rapidly.
HTML Tables, once used heavily for almost everything, have largely been relegated in the modern CSS/HTML5 world. Now they are only used for what they were originally designed for — rendering tabular data. So they&rsquo;re still essential! But there&rsquo;s a lot to them, if you want to use them properly. So there needs to be a way of rendering them easily and quickly. Today&rsquo;s tutorial introduces a module which helps you do just that.
If you want to change a layout for one or all actions in a controller, how do you do it without overriding the layout globally? Today&rsquo;s post shows how.
<p>For the longest time, I&rsquo;ve been using closures in my Zend Framework 2 Modules <code class="minimalist">Module</code> class. I know they&rsquo;re not always the best approach, but they&rsquo;re not necessarily wrong either.</p> <p>But after <a href="http://www.masterzendframework.com/reviews/maximising-zend-framework-2-performance-phpuk14">reviewing Gary Hockin&rsquo;s recent talk</a> at <acronym title="Pre-Hypertext Processing">PHP</acronym> Conference UK, I was reminded that outside of APC and OPCache, <strong>closures aren&rsquo;t cacheable</strong>.</p>
<p><a href="http://www.masterzendframework.com/wp-content/uploads/2013/01/Post-Image.jpg"><img class="aligncenter size-full wp-image-12064" title="Zend Framework 2 Modules - The Application's Heart " src="http://www.masterzendframework.com/wp-content/uploads/2013/01/Post-Image.jpg" alt="Zend Framework 2 Modules - The Application's Heart" width="600" height="200" /></a></p> <div class="author-box"> <ul> <li> <a href="http://www.masterzendframework.com/articles-2/zend-framework-2-core-concepts-understanding-dependency-injection" title="Zend Framework 2 Core Concepts – Dependency Injection">Part 1 - Zend Framework 2 Core Concepts – Dependency Injection</a> </li> <li> <a href="http://www.masterzendframework.com/tutorial/zend-framework-2-event-manager-a-gentle-introduction" title="Zend Framework 2 Event Manager – A Gentle Introduction">Part 3 - Zend Framework 2 Event Manager – A Gentle Introduction</a> </li> <li> <a href="http://www.masterzendframework.com/tutorial/zend-framework-2-servicemanager" title="Zend Framework 2 ServiceManager – Web Application Development Simplified">Part 4 - Zend Framework 2 ServiceManager – Web Application Development Simplified</a> </li> </ul> </div> <blockquote> <p>If I have seen further it is by standing on the shoulders of giants.</p> </blockquote> <p>It&rsquo;s a really exciting time at the moment with Zend Framework 2 gaining so much traction, after being stable for some time now.</p> <p>Though I and countless others really enjoyed the 1.x series, it did leave some things to be desired - to be fair.</p> <p>But the more I explore of the 2.x series, the more I honestly can say that I&rsquo;m very impressed with it. It may not be as fast as the previous series, but with respect to development, there&rsquo;s so much going for it it&rsquo;s worth shouting about.</p> <p>So it really is rewarding and exciting to begin covering all that it has to offer us. In <a href="http://www.masterzendframework.com/articles-2/zend-framework-2-core-concepts-understanding-dependency-injection">part one of this series</a>, I looked at a central concept of the revised framework - <strong>Dependency Injection</strong>.</p>