-
-
Notifications
You must be signed in to change notification settings - Fork 5
Page logic conventions
Greg Bowler edited this page May 9, 2026
·
2 revisions
- Capture the naming and structural rules for page logic files.
- File names.
- Function names.
- Action naming for
do_*.
- Keep page logic thin.
- Separate orchestration from business rules.
- Bind output late in the request flow.
- How to optionally wrap page logic in its own class.
- Hypermedia is HTML over HTTP - incredibly simple and well understood by developers and web browsers.
- Use explicit actions.
- Use redirects deliberately.
- Keep side effects easy to trace.
- Once functional, add fluid user experience without changing behavioural flow.
Move on to the view and binding reference page next.
- 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