Skip to content

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
  • A custom template.
    • Loads site/templates/X.php
  • An Entry.
    • Loads site/theme/index.php
    • Note: Pages takes precedence over Posts.
    • If a 404 page exists in site/pages load 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.

Clone this wiki locally