/**
  * init setup framework
  */
 public static function initFramework()
 {
     Setup_Core::setupConfig();
     Setup_Core::setupTempDir();
     //Database Connection must be setup before cache because setupCache uses constant "SQL_TABLE_PREFIX"
     Setup_Core::setupDatabaseConnection();
     Setup_Core::setupStreamWrapper();
     //Cache must be setup before User Locale because otherwise Zend_Locale tries to setup
     //its own cache handler which might result in a open_basedir restriction depending on the php.ini settings
     Setup_Core::setupCache();
     Setup_Core::setupBuildConstants();
     // setup a temporary user locale/timezone. This will be overwritten later but we
     // need to handle exceptions during initialisation process such as seesion timeout
     Setup_Core::set('locale', new Zend_Locale('en_US'));
     Setup_Core::set(Tinebase_Core::USERTIMEZONE, 'UTC');
     Setup_Core::setupUserLocale();
     header('X-API: http://www.tine20.org/apidocs/tine20/');
 }