Luis Majano Forums Notification: Post to Separating model and view

Title: RE: Separating model and view
Thread: Separating model and view
Forum: Need Help?
Conference: ColdBox
User: lmajano

Your business objects in my sense can be accessed from the views. You can
do this easily by just putting them in the request collection and picking them
up in the view. So if I have the following in my handler:

<cfset var
rc = event.getCollection()>
<cfset rc.oOrder = model.getOrder()>
Then in your view:


Order Number:
Order Items: #rc.oOrder.getItems()#


and so forth and forth.