Pico/index.php

28 lines
633 B
PHP
Raw Normal View History

2012-04-04 13:45:09 +00:00
<?php
2015-10-09 15:39:56 +00:00
// load dependencies
if(is_file($f = __DIR__ . '/vendor/autoload.php')) {
// local composer install
require_once($f);
} elseif(is_file($f = __DIR__ . '/../../../vendor/autoload.php')) {
// root composer install
require_once($f);
} else {
// composer needs install...
die('Cannot find composer `/vendor/autoload.php` -- try `composer install`');
}
2015-10-09 15:39:56 +00:00
// instance Pico
$pico = new Pico(
2015-10-09 15:39:56 +00:00
__DIR__, // root dir
'config/', // config dir
'plugins/', // plugins dir
'themes/' // themes dir
);
2015-10-09 15:39:56 +00:00
// override configuration?
// $pico->setConfig(array());
// run application
echo $pico->run();