Skip to content

Instantly share code, notes, and snippets.

@alfrekjv
Created February 24, 2016 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfrekjv/e44d232ba92156de26d1 to your computer and use it in GitHub Desktop.
Save alfrekjv/e44d232ba92156de26d1 to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', 1);
// All relative paths start from the main directory, not from /public/
chdir(dirname(__DIR__));
// Lets include PPI
include('app/init.php');
include('app/siteManager.php');
include('app/translations.config.php');
// Initialise our PPI App
$sm = new SiteManager();
$app = new PPI\App();
$config = include($sm->getConfigFile());
$config['datasource.connections'] = include($sm->getDataSource());
$config['environment'] = $sm->getEnv();
$app->moduleConfig = include($sm->getModuleConfig());
$app->config = $config;
// If you are using the DataSource component, enable this
$app->useDataSource = true;
$app->boot()->dispatch();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment