mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
2facc7c80d
* Rewrite callout blocks * Rewrite frontmatter * Replace missing frontmatter * Replace note callouts * Fix icons * Hide children * Tidy up code blocks * Replace legacy code blocks with fenced
1.1 KiB
1.1 KiB
title | summary | introduction |
---|---|---|
Controllers | Controllers form the backbone of your SilverStripe application. They handle routing URLs to your templates. | In this guide you will learn how to define a Controller class and how they fit into the SilverStripe response and request cycle. |
The [api:Controller] class handles the responsibility of delivering the correct outgoing [api:SS_HTTPResponse] for a given incoming [api: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.
[CHILDREN]
Related Documentation
API Documentation
- [api:Controller]
- [api:SS_HTTPRequest]
- [api:SS_HTTPResponse]