I’ve been reading through the documentation and I can’t find how to do this (or if it is even possible). Is there a way you can use the same event handler method to either display a view, or include a view in another page via AJAX?
For Example you have an event called AboutUs and you want to display it on the AboutUs page with the layout.main.cfm file. Additionally, you want to have a proxy method getAboutUs that returns the HTML in the vwAboutUs file without including the layout.main.cfm… Can you have that occur through the same method?
I’m currently creating a private method in the handler that does the work that is duplicated, but it seems like I’m missing something.