Archive for June, 2009

Creating a Custom Resource Plugin in Zend Framework 1.8

Monday, June 1st, 2009

Version 1.8 of the Zend Framework introduced a whole new concept of bootstrapping an application. The core functionality is contained in theĀ Zend_Application component which supports a strictly object-oriented approach to bootstrapping. Although the new concept is fairly straightforward, it does take a little time to get used to it if you are used to the bootstrapping process in earlier versions of ZF.

One of the many interesting features of Zend_Application is the ability to push resources into resource plugin classes which can be utilized simply via configuration. In this tutorial we will be looking at creating a custom resource plugin. The plugin is quite simple, it creates a “value object” with the name, author and version of the application, and stores it in the Zend registry.
(more…)