Exemplo n.º 1
0
<?php

ob_start();
// Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__)));
// Define application environment
defined('APPLICATION_ENV') || define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production');
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(realpath(APPLICATION_PATH), get_include_path())));
// Define path to data directory
defined('APPLICATION_DATA') || define('APPLICATION_DATA', realpath(dirname(__FILE__) . '/../../data/logs'));
function __autoload($path)
{
    return include str_replace('_', '/', $path) . '.php';
}
$rest = new Rest();
$rest->process();
ob_end_flush();
 function Send()
 {
     $rest = new Rest();
     $rest->process();
     //$this->Display();
 }