Understanding the stack index for Zend Framework Controller plugins

July 15th, 2010

Zend Framework Controller plugins are a powerful way to inject logic into your controller system at various points, such as before and after an action dispatch. Plugins are run in the order they are added, though it is possible to change the order by defining a custom stack index. ZF internal plugins such as Zend_Controller_Plugin_ErrorHandler, which displays a nice Error 404 page, has a stack index of 100 to ensure it runs near the end of any plugin cycle. However, it’s not so obvious from the ZF manual how to set a custom stack index.
Read the rest of this entry »

  • me

    I run web agency Studio 24 and I blog occassionally about PHP, web standards, usability and general web development.

  • you are currently browsing the simon r jones blog archives for July, 2010.

© Simon R Jones 2005-2010, Entries (RSS)

contact me on , Twitter, Linkedin