PHP Classes

File: test/tpl/BootstrapTemplate

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis PHP Platform Skeleton   test/tpl/BootstrapTemplate   Download  
File: test/tpl/BootstrapTemplate
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis PHP Platform Skeleton
Setup a site to run using the Melis platform
Author: By
Last change:
Date: 4 years ago
Size: 308 bytes
 

Contents

Class file image Download
<?php
use MelisCore\ServiceManagerGrabber;

error_reporting(E_ALL | E_STRICT);

$cwd = __DIR__;
chdir(dirname(__DIR__));

// Assume we use composer
$loader = require_once '../../../vendor/autoload.php';
$loader->add("%s\\", $cwd);
$loader->register();

ServiceManagerGrabber::setServiceConfig();
ob_start();