Skip to content

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.

Project root directories and files

The most common directories and files are:

  • page/
  • class/
  • query/
  • www/
  • config files in the project root

What lives where

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.

Naming and placement rules

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.

Clone this wiki locally