Framework booting

At the top of the primary handlers, there is the following line:

require_once(dirname(dirname(__FILE__)) . "/start.php");

This loads the Elgg framework, which includes the following:

  • Loading the core libraries
  • Connecting to the database
  • Loading Elgg's configuration
  • Loading plugins
  • Loading language files
  • Initializing the user's session
  • Registering handlers and callbacks

When the boot process is completed, control is returned to the handler. Elgg's routing and page handling system handle booting the framework before a plugin is called.

Code location

Boot script: /engine/start.php

Get Elgg 1.8 Social Networking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.