mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Update controllers.rst
This commit is contained in:
parent
69d67bf190
commit
4432ffcc42
@ -4,7 +4,7 @@ Controllers
|
||||
|
||||
.. sectionauthor:: Bernhard Posselt <dev@bernhard-posselt.com>
|
||||
|
||||
Controllers are used to connect :doc:`routes <routes>` with app logic. Think of it as callbacks that are executed once a request has come in. Controllers are defined inside the **controllers/** directory.
|
||||
Controllers are used to connect :doc:`routes <routes>` with app logic. Think of it as callbacks that are executed once a request has come in. Controllers are defined inside the **controller/** directory.
|
||||
|
||||
To create a controller, simply extend the Controller class and create a method that should be executed on a request:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user