-
-
Notifications
You must be signed in to change notification settings - Fork 5
Project structure reference
Greg Bowler edited this page May 11, 2026
·
2 revisions
This page is a quick reference for where things live in a WebEngine project.
The most common directories and files are:
page/class/query/www/- config files in the project root
page/ contains page views and page logic. class/ contains application classes. query/ contains SQL queries and migrations. www/ contains public files that the web server can serve directly.
Config files stay in the project root because they describe the application as a whole rather than one page.
Keep index files for directory-level pages, keep HTML and PHP page pairs aligned, and keep shared layout and component directories in their expected special paths.
The more obvious the placement is, the easier it becomes to follow a request through the project.
Move on to the Further Reading chapter with Distinct Logic Authority.
- 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