News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney's Blog:
Creating Re-Usable Zend_Application Resource Plugins
February 05, 2010 @ 09:42:12

In a new post to his blog Matthew Weier O'Phinney looks at creating reusable plugins for the Zend_Application component of the Zend Framework. This is a follow-up from his previous article introducing Zend_Application.

What happens when you need a re-usable resource for which there is no existing plugin shipped? Why, write your own, of course! All plugins in Zend Framework follow a common pattern. Basically, you group plugins under a common directory, with a common class prefix, and then notify the pluggable class of their location.

His example shows a plugin that can set the doctype of the view you're using and set the default page title and the separator. He mentions things like the framework's coding/naming standards, dependency tracking, setting up the configuration and, finally, doing the two actions laid out at the start. A few simple lines added to the application.ini file and you're all set to start using the new plugin.

0 comments voice your opinion now!
zendframework tutorial zendapplication resource plugin


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Deleting indexes from Zend_Registry and why you shouldn't do it !

DevShed: An Introduction to Sockets in PHP (Part 1)

Matthew Weir O'Phinney's Blog: NYPHP Zend Framework Presentation

Jani Hartikainen's Blog: What is a null object, and when are they useful?

Benjamin Eberlei's Blog: Using a Dependency Injection Container with Zend_Application


Community Events





Don't see your event here?
Let us know!


configure series framework threedevsandamaybe podcast language interview opinion wordpress refactor list community developer introduction code laravel install testing release unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework