ColdMVC

Implicit Event Handlers

ColdMVC will implicitly invoke certain methods on your request's controller if they are defined.

Before the request's action is invoked, ColdMVC will invoke the controller's pre and pre{Action} methods if they exist.

Next, ColdMVC will invoke the action for the request, followed by the post{Action} and post methods if they exist.

For example, if the current request is /product/list, ColdMVC will invoke ProductController.pre(), ProductController.preList(), ProductController.list(), ProductController.postList(), and finally ProductController.post().