Skip to content

Commit 281c59c

Browse files
committed
Empty Controller top page, move intro into Life Cycle
1 parent 7329a9f commit 281c59c

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

docs/development/controller/controller.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,3 @@
22
outline: [2, 4]
33
---
44
# Controller
5-
6-
abap2UI5 gives you great flexibility in how you structure apps. Most sample apps follow the pattern below. Use it as a starting point, and tweak it or build a wrapper around abap2UI5 for more specific behavior.
7-
8-
The idea: every request enters the `main` method, and you use `CASE` to dispatch between initialization, navigation returns, and user events.
9-
10-
The following sections walk through each phase:
11-
12-
- [Life Cycle](/development/controller/life_cycle) — the overall dispatch pattern in `main`
13-
- [Init](/development/controller/init) — first-time setup and rendering the view
14-
- [Event](/development/controller/event) — handling user actions
15-
- [Navigated](/development/controller/navigated) — returning from another app

docs/development/controller/life_cycle.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ outline: [2, 4]
33
---
44
# Life Cycle
55

6-
Every request to an abap2UI5 app enters the `main` method. The recommended pattern uses `CASE abap_true` together with `client->check_on_init`, `client->check_on_event`, and `client->check_on_navigated` to dispatch to the matching handler method.
6+
abap2UI5 gives you great flexibility in how you structure apps. Most sample apps follow the pattern below. Use it as a starting point, and tweak it or build a wrapper around abap2UI5 for more specific behavior.
7+
8+
The idea: every request enters the `main` method, and you use `CASE` to dispatch between initialization, navigation returns, and user events. The recommended pattern uses `CASE abap_true` together with `client->check_on_init`, `client->check_on_event`, and `client->check_on_navigated` to dispatch to the matching handler method.
79

810
```abap
911
CLASS z2ui5_cl_demo_app_001 DEFINITION PUBLIC.

0 commit comments

Comments
 (0)