Skip to content
  • Sponsor
  • Notifications You must be signed in to change notification settings
  • Fork 4

Commit 613ee98

Browse files
committedNov 17, 2021
add heading for request response cycle
1 parent 91b8d93 commit 613ee98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎working-with-controllers/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ description: Tutorial on how to work with controllers in Fano Framework
55

66
<h1 class="major">Working with Controllers</h1>
77

8+
## Request response cycle.
9+
810
<a href="/assets/images/request-response-cycle.svg">
911
<img src="/assets/images/request-response-cycle.svg" alt="Request response cycle diagram" width="50%">
1012
</a>
1113

12-
Request response cycle diagram.
13-
1414
When web application receives [request](/working-with-request), [dispatcher](/dispatcher) uses uri and HTTP method to [match route](/working-with-router) for the request. If route is found, associated controller will be called, otherwise it raises `ERouteHandlerNotFound` exception. Controller than fetch required data from model. Model may retrieve data from storage such as database system. View builds response output to controller which pass response back to web server and eventually back to client browser.
1515

1616
In Fano Framework, controller is any class implements `IRequestHandler` interface. This is where application business logic resides.

0 commit comments

Comments
 (0)
Please sign in to comment.