Category: PHP

Changing the layout or template within a Zend Framework 2 is easy. Thanks to the layout controller plugin, one can change the layout for a given controller action in just…

Read More Changing Layout in ZF2 Controller

Zend Framework

Getting the base url of a request in Zend Framework 2 is quite simple. Because you are probably extending the AbstractActionController class, you get some functionality out of the box,…

Read More Get Base Url within ZF2 Controller

Zend Framework

Zend Framework

PHP

Creating a custom controller plugin in Zend Framework 2 is easy! First, begin by creating a new class. I will put this in the Application\Controller\Plugin namespace. namespace Application\Controller\Plugin; use Zend\Mvc\Controller\Plugin\AbstractPlugin;…

Read More Creating a Custom ZF2 Controller Plugin

Zend Framework

Zend Framework

Zend Framework

The wkhtmltopdf tool, which converts HTML markup to a PDF document, is quite powerful compared to most other solutions that I have come across. It uses the WebKit rendering engine, which powers many Mac OS X applications such as Safari – and previously Google Chrome. This article shows you how to make the Google Visualization API work with the wkhtmltopdf tool.

Read More Using Google Visualization with wkhtmltopdf

PHP

PHP

PHP