Esempio n. 1
0
 /**
  * Initializes the framework 
  */
 public static function run($config, $rootDir)
 {
     spl_autoload_register('Upendo::autoload');
     //autoload unknown files
     self::$app = new App($config, $rootDir);
     //start the app
     self::$app->run($config);
 }
Esempio n. 2
0
<?php

require __DIR__ . '/vendor/autoload.php';
require 'vendor/hosannahighertech/upendo/Upendo.php';
$config = (require __DIR__ . '/system.php');
Upendo::run($config, __DIR__);