XpFramework laden

Kommentieren May 12 2007

 

Hier der Code wie man das XP Framework in seine PHP Applikation einbindet. ( Es wird PHP 5.2 benötigt )

// xp framework
// paths

define('ABSOLUTE_PATH',dirname(__FILE__)."/");
define('LIB_DIR','lib/');

$include = ini_get('include_path');
if(!ini_set('include_path',$include.':'.ABSOLUTE_PATH.LIBS_DIR.'xp')) {
    die('Failed to set the include path. Check you php configuration.');
}

require('lang.base.php'); // load the xp framework