Page controller pattern
In the Page Controller web presentation pattern, each URL on the web server is mapped to a page controller. The page controller handles the HTTP request and instantiates appropriate views and model objects. Page controllers are in charge of:
- Decoding the incoming URL to figure out the data required.
- Instantiating and initializing model objects to handle the request.
- Determining which view should render the model object data.
Each page controller should be mapped to a URL scheme. For example, a MovieController would map to the /movie/ URL.