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

Commit ed185e7

Browse files
authoredNov 18, 2021
Update index.md
1 parent 232c467 commit ed185e7

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
@@ -8,10 +8,10 @@ description: Tutorial on how to work with controllers in Fano Framework
88
## Request response cycle.
99

1010
<a href="/assets/images/request-response-cycle.svg">
11-
<img src="/assets/images/request-response-cycle.svg" alt="Request response cycle diagram" width="50%">
11+
<img src="/assets/images/request-response-cycle.svg" alt="Request response cycle diagram" width="100%">
1212
</a>
1313

14-
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.
14+
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 fetches required data from model and use view to compose presentation. 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.
1717

0 commit comments

Comments
 (0)