Arguments
controller: The controller of the modalmodal: The modal to openargs: The arguments to pass in to the modal action
Effects
In Erstwhile, modals are implemented similarly to controller actions, only instead of having the method name end with Action in the controller it ends with Modal. They make use of a special scope called modal that lets them have a set of Scoped Variables separate from that of the page that is underneath them.
This function will run the modal’s method and place the view inside the modal, and then show the modal to the user afterwards.