Version 3 end of life
This version of Silverstripe CMS will not recieve any additional bug fixes or documentation updates. Go to documentation for the most recent stable version.

The Controller class handles the responsibility of delivering the correct outgoing SS_HTTPResponse for a given incoming SS_HTTPRequest. A request is along the lines of a user requesting the homepage and contains information like the URL, any parameters and where they've come from. The response on the other hand is the actual content of the homepage and the HTTP information we want to give back to the user.

Controllers are the main handlers for functionality like interactive forms, rendering the correct templates and performing and navigating around the permission checks on the users actions.

Introduction to a Controller
A brief look at the definition of a Controller, creating actions and how to respond to requests.
Routing
A more in depth look at how to map requests to particular controllers and actions.
Access Control
Define allowed behavior and add permission based checks to your Controllers.
Redirection
Move users around your site using automatic redirection.
Request Filters
Create objects for modifying request and response objects across controllers.

Related Documentation

API Documentation