getRoutes() static public method

static public getRoutes ( )
Beispiel #1
0
 */
$_ENV['dir.bootstrap'] = str_replace('\\', '/', realpath(dirname(__FILE__))) . '/';
$_ENV['url.base'] = str_replace('bootstrap.php', '', $_SERVER['PHP_SELF']);
if (strpos($_SERVER['REQUEST_URI'], '/bootstrap.php') === 0) {
    exit;
}
$bootstrapped = true;
require_once './recess-conf.php';
RecessConf::init();
Library::import('recess.diagnostics.Diagnostics');
set_error_handler(array('Diagnostics', 'handleError'));
set_exception_handler(array('Diagnostics', 'handleException'));
Library::import('recess.http.Environment');
Library::import('recess.Recess');
// Entry point to Recess
Recess::main(Environment::getRawRequest(), RecessConf::$policy, RecessConf::getRoutes(), RecessConf::$plugins);
// RecessConf follows...
abstract class RecessConf
{
    const DEVELOPMENT = 0;
    const PRODUCTION = 1;
    public static $mode = self::PRODUCTION;
    public static $recessDir = '';
    public static $pluginsDir = '';
    public static $appsDir = '';
    public static $dataDir = '';
    public static $useTurboSpeed = false;
    public static $cacheProviders = array();
    public static $applications = array();
    public static $plugins = array();
    public static $defaultDatabase = array();
Beispiel #2
0
<?php

Layout::extend('layouts/routes');
$title = 'Home';
?>
<h2 class="bottom">Routes</h2>
<?php 
$routes = RecessConf::getRoutes();
Part::draw('routes/table', $routes, '/recess');