PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Creating Re-Usable Zend_Application Resource Plugins

Note: This article was originally published at phly, boy, phly on 9 February 2010.

In my last article, I wrote about how to get started with Zend_Application, including some information about how to write resource methods, as well as listing available resource plugins. 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.

For this post, let's consider that you may want a resource plugin to do the following:

  • Set the view doctype
  • Set the default page title and title separator

Continue reading "Creating Re-Usable Zend_Application Resource Plugins"