Does ColdBox have a global postHandler?
I have code that I would like to execute after every event, regardless
of what handler it's in. Do I have to add the code to every handler
cfc file?
Does ColdBox have a global postHandler?
I have code that I would like to execute after every event, regardless
of what handler it's in. Do I have to add the code to every handler
cfc file?
No WAY!! ejej. There are interceptors for that. You can intercept at postEvent() meaning after ANY event or postProcess() after ANY event and renderings are done.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Interceptors are really powerful and probably what you want to use (especially as Luis says so!), but there is an onRequestEnd implicit event which you set up in the coldbox.xml config (look for )