示例#1
0
文件: Uber.php 项目: biGGs24/sgl2
 public static function initUberAutoload()
 {
     Uber_Loader::registerNamespace('Uber', dirname(__FILE__));
 }
示例#2
0
<?php

define('PROJECT_PATH', dirname(dirname(__FILE__)));
//  sgl libs
$root = dirname(dirname(dirname(__FILE__)));
$sglLibDir = $root . '/sgl2/src/lib';
require $sglLibDir . '/Uber.php';
Uber::init();
Uber_Loader::registerNamespace('SGL2', $sglLibDir);
Uber_Loader::registerNamespace('Zend', $sglLibDir);
Uber_Loader::registerNamespace('Horde', $sglLibDir);
try {
    $front = new SGL2_Controller_Front();
    $output = $front->bootstrap()->dispatch();
} catch (Exception $e) {
    print '<pre>';
    print_r($e);
}
echo $output;