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 »
Understanding the stack index for Zend Framework Controller plugins
July 15th, 2010me
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.
archives
categories
- Community (3)
- CSS (2)
- JavaScript (2)
- Misc (6)
- PHP (1)
- Quick tips (2)
- Web development (1)
- Web standards (1)
- Zend Framework (5)