Interceptors
Interceptors are CFC listeners that enable aspect-oriented programming in ColdBox. Create interceptor chains for cross-cutting concerns like security, logging, and caching.
Last updated
Was this helpful?
Interceptors are CFC listeners that enable aspect-oriented programming in ColdBox. Create interceptor chains for cross-cutting concerns like security, logging, and caching.
Last updated
Was this helpful?
Was this helpful?
<!-- Announce an event in the div and produce content -->
<div>#announce( 'onSidebar' )#</div>
// Announce inside a function
if( userCreated ){
announce( 'onUserCreate', { user = prc.oUser } );
}component extends="coldbox.system.Interceptor"{
function onError( event, interceptData={} ){
// Listen to onError events
}
}