. */ /** * This file initializes the toolkit. * Please include this file if you want to use the P Toolkit. If this is a development instalation please define DEBUG as true before * you include this file. * * @author Dinu Florin * @package Core */ define('PT_VERSION', 0.1); /** * @ignore */ if(!defined('DEBUG')) define('DEBUG', false); $initDir = dirname(__FILE__).DIRECTORY_SEPARATOR.'core'.DIRECTORY_SEPARATOR; require $initDir.'GenericException.class.php'; require $initDir.'Util.class.php'; require $initDir.'Pt.class.php'; require $initDir.'Core.class.php'; unset($initDir); if(DEBUG) { error_reporting(E_ALL|E_STRICT); assert_options(ASSERT_ACTIVE, true); assert_options(ASSERT_BAIL, true); } else { error_reporting(0); assert_options(ASSERT_ACTIVE, false); } Core::initialize(); //if(php_sapi_name() != 'cli') //Don't initialize the response if we run from CLI //{ // Response::initialize(); //} ?>