edoceo

Radix PHP Bootstrap


<?php
/**
	@brief Radix Application Bootstrap Example
	This file is typically in the application root ./boot.php
*/

$path = array();
$path[] = '/opt/edoceo/lib/radix';  // Include Radix
$path[] = dirname(__FILE__).'/lib'; // Include Application Libs
$path[] = get_include_path();       // Include System Libs
set_include_path(implode(PATH_SEPARATOR,$path));

// I Like these
define('APP_ROOT',dirname(__FILE__));
define('APP_DATA',APP_ROOT . '/var');

// Add more for you!

require_once('radix.php');
require_once('Radix/Cache.php');
require_once('Radix/Session.php');

require_once('Radix/db/sql.php');
radix_db_sql::init('pgsql:host=sql.lan;dbname=site','site','site');

Loading Comments from Disqus...