RE: [coldbox:18222] [Coldbox 3.6.0] Question on getting data for none view related items in a layout.

Your layout can also run an event. In the event return the HTML ouput of renderView(“menu/mainMenu”). Then in your layout it just looks like:


That event can handle getting all the data needed by mainMenu’s view so it’s all compact and re-usable.



ColdBox Platform Evangelist
Ortus Solutions, Corp

ColdBox Platform:

Ok, I think this is close to what I am looking for. I will have to give it a try. Will runEvent automatically return the resulting view or do I need to manually output the HTML somewhere along the way?