* @version 1.3.1 */ /*********************************** * THESE SETTINGS ARE YOU ONES YOU * * WOULD LIKELY WANT TO CHANGE * ***********************************/ // -- where is your config file if (!defined('CONFIG_FILE')) define('CONFIG_FILE', 'app/config.ini'); // -- display any user generated errors...probably only for debugging if (!defined('FULL_ERROR_REPORTING')) define('FULL_ERROR_REPORTING', false); // -- output queries to /log/trace.log ... be careful! // -- not to be used in production site if (!defined('LOG_QUERIES')) define('LOG_QUERIES', false); // -- timezone for the application server if (!defined('TIMEZONE')) define('TIMEZONE', 'America/Los_Angeles'); /*********************************** * YOU _COULD_ EDIT THESE SETTINGS * * BUT YOU SHOULDN'T NEED TO * ***********************************/ // -- which export types to allow - should be a | (pipe) delimited string // -- current possible values are json|serial|vars|xml|yaml if (!defined('ALLOWED_TYPES')) define('ALLOWED_TYPES', 'json|serial|vars|xml|yaml'); // -- where are the user customized files located if (!defined('API_APP')) define('API_APP', 'app/'); // -- query param used in .htaccess (gets rewritten to index.php?asra_url=) if (!defined('ASRA_URL')) define('ASRA_URL', 'asra_url'); // -- where are the user defined controllers if (!defined('API_CONTROLLERS')) define('API_CONTROLLERS', API_APP . 'controllers/'); // -- do you want to use auto-caching? This turns on caching for all // -- views (with a lifetime of 1 second). // -- To set individual caching use the Controller::setCachLifeTime() method. if (!defined('CACHE_OUTPUT')) define ('CACHE_OUTPUT', false); // -- where is the api core located if (!defined('CORE')) define('CORE', 'core/'); // -- where is the codebase? if (!defined('CODEBASE')) define('CODEBASE', CORE . 'lib/'); // -- default method to call if one isn't defined if (!defined('DEFAULT_METHOD')) define('DEFAULT_METHOD', 'index'); // -- must create a controller to access data. highly recommended. if (!defined('REQUIRE_CONTROLLER')) define('REQUIRE_CONTROLLER', true); // -- root xml node if (!defined('XML_ROOT_NODE')) define('XML_ROOT_NODE', 'rsp'); /************************** * DO NOT EDIT BELOW HERE * **************************/ // -- required core api files require_once CORE . 'bootstrap.php';