-
-
Notifications
You must be signed in to change notification settings - Fork 5
Routing reference
Greg Bowler edited this page May 11, 2026
·
3 revisions
This page documents WebEngine's routing behaviour as a reference rather than a tutorial.
WebEngine routing covers:
- basic file-based route resolution
- index file resolution
- dynamic path matching
- automatic header and footer inclusion
- API route handling
For the lower-level routing component, see https://www.php.gt/docs/Routing/Home/.
The main cases to watch for are:
- clashing file and directory names
- clashes between dynamic and static routes
- content negotiation where one URL may need to serve more than one response type
When a route stops feeling obvious, it is usually worth stepping back and simplifying the path structure rather than adding another special case.
Read about page logic conventions 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