public function preDispatch() { parent::preDispatch(); // do something before the action is called //-> see Zend Framework }