-
Notifications
You must be signed in to change notification settings - Fork 2
Lifecycle
Sebastian Kolind Sørensen edited this page Feb 1, 2021
·
3 revisions
The lifecycle of Volcano is pretty straightforward yet very important.
When a page is requested the following happens in Volcano:
The Route resolves to:
- A custom home page.
- Loads
site/templates/home.php
- Loads
- A custom template.
- Loads
site/templates/X.php
- Loads
- An Entry.
- Loads
site/theme/index.php - Note: Pages takes precedence over Posts.
- Loads
-
- If a 404 page exists in
site/pagesload that. - Otherwise send header() with 404 as HTTP response.
- Nothing.
- This is typically due to an error in your setup.
These can be found in the resolvedRoute() method in Volcano.php.