In this time of dynamic applications we have widgets or content that can be used more than once. Instead of getting everything at the same time we want to be able to dynamically load new objects in, or at least not have to do a lot to get functionality working.
For this recipe we need nothing more than a working Zend Framework 2 skeleton application.
In this recipe we'll be discussing how to create reusable templates and the best way of using them in an application.
Action view helper is a great way of calling different actions in our code to retrieve other parts of our application:
<div class="left">Some content on the left!</div> <div class="right"> ...