コード例 #1
0
ファイル: boot.php プロジェクト: vigm/advancedMD
 * ------------------------------------------------------
 *  Set and load the framework constants
 *
 *  BASEPATH - path to the legacy app folder. Most legacy
 *             files check for this (`if ! defined ...`)
 * ------------------------------------------------------
 */
define('BASEPATH', SYSPATH . 'ee/legacy/');
require BASEPATH . 'config/constants.php';
/*
 * ------------------------------------------------------
 *  Load the autoloader and register it
 * ------------------------------------------------------
 */
require SYSPATH . 'ee/EllisLab/ExpressionEngine/Core/Autoloader.php';
EllisLab\ExpressionEngine\Core\Autoloader::getInstance()->addPrefix('EllisLab', SYSPATH . 'ee/EllisLab/')->addPrefix('Michelf', SYSPATH . 'ee/legacy/libraries/typography/Markdown/Michelf/')->register();
/*
 * ------------------------------------------------------
 *  Load the global functions
 * ------------------------------------------------------
 */
require __DIR__ . '/boot.common.php';
/*
 * ------------------------------------------------------
 *  Define a custom error handler so we can log PHP errors
 * ------------------------------------------------------
 */
set_error_handler('_exception_handler');
/*
 * ------------------------------------------------------
 *  Check for the installer if we're booting the CP
コード例 #2
0
define('SYSPATH', $system_path);

if (file_exists($system_path.'ee/legacy/config/constants.php'))
{
    require_once $system_path.'ee/legacy/config/constants.php';
}
else
{
    require_once $system_path.'ee/EllisLab/ExpressionEngine/Config/constants.php';
}

require_once $system_path.'ee/EllisLab/ExpressionEngine/Boot/boot.common.php';
require_once $system_path.'ee/EllisLab/ExpressionEngine/Core/Autoloader.php';
require_once $system_path.'ee/legacy/core/Controller.php';

$autoloader = EllisLab\ExpressionEngine\Core\Autoloader::getInstance();

$autoloader->addPrefix(
    'EllisLab',
    $system_path.'ee/EllisLab/'
);

$autoloader->addPrefix(
    'Michelf',
    $system_path.'ee/legacy/libraries/typography/Markdown/Michelf/'
);

$autoloader->register();

class EE3_Bootstrap extends EllisLab\ExpressionEngine\Core\ExpressionEngine
{