Hooks in Action Helpers
Following on from the discussion on Zend Framework Action Helpers, let's talk about hooks within them. Hooks are a feature of action helpers that allow you to automatically run code at certain points in the dispatch cycle. Specifically, there are two hook functions available for action helpers: preDispatch(): runs before the action function is called postDispatch(): runs after the action function has completed These allow you to ensure that some functionality is always run for… continue reading.