[Coldbox 4.1.0] Nested Handlers and getting Current Handler


I’m trying to figure out a way to get the current executing handler path in order to build exit event handlers. I have the following directory structure set up:


If I have an index() method in profile.cfc, then my full path to the event is ‘http://mysite.com/index.cfm?event=companies.profile.index’. Is there currently a way to get the ‘companies.profile’ using something like ‘event.getCurrentHandler()’? Or do I need to handle this myself?


You can review the methods in the request context (event object) to see if any of them will get you what you need, but I think the last time I ran into this I needed to handle it myself.



ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad. Thats pretty much what I figured.