I’d like to implement a session (or maybe host) based views/layouts external location.
Obviously I can’t really use viewsexternallocation from my Coldbox.cfc - as that is application wide. I need this value to change based on a session, or based on cgi.http_host instead.
Has anyone any idea how I can do this; ideally I’d like to not have to touch my controllers to work out extra logic, and to rewrite every event.setView in my application(!)
Any ideas for doing this in the most elegant way (without modifying too much of the coldbox core; ideally none at all) would be appreciated.
Thanks,
Tom.