-
-
Notifications
You must be signed in to change notification settings - Fork 5
Page logic
Greg Bowler edited this page May 9, 2026
·
3 revisions
- Define page logic as the entry point for one page request.
- Position it as thin coordination code rather than the home of all business rules.
- Explain filename pairing with the page view.
- Explain what happens when there is no logic file.
- Introduce the
gofunction. - The functions should not output anything directly - any output from
echoor debug code will be sent to the browser's developer console.
- Introduce
dofunctions. - Explain the role of
do_*methods for user actions.
- Introduce
go_before, `go_after. - Explain the order in which they all run.
- Explain how nested _common logic will run in a particular order (from nested out, or the other way around, whatever it actually is).
- Read input.
- Call application classes or services.
- Bind data to the document.
- Set headers or response state.
- Large business rules.
- Raw SQL manipulation code.
- HTML in strings construction.
- Reiterate that any output from
echoor debug code will be sent to the browser's developer console.
Now the pages can have dynamic content, let's learn about dynamic URLs.
- File-based routing
- Page views
- Page logic
- Dynamic URIs
- Headers and footers
- Custom HTML components
- Page partials
- Binding data to the DOM
- DOM manipulation
- Hello You tutorial
- Todo list tutorial
- Address book tutorial WIP
- Blueprints
- Application architecture
- Coding styleguide WIP
- PHP environment setup WIP
- Web servers WIP
- Background cron tasks
- Database setup WIP
- Client-side compilation WIP
- Testing WebEngine applications WIP
- Production checklist WIP
- Security WIP