Esempio n. 1
0
 function boot()
 {
     if (!defined('APP_ROOT')) {
         define('APP_ROOT', dirname(dirname(__FILE__)));
     }
     self::$tmp_path = APP_ROOT . '/tmp';
     // initialize preference system
     include APP_ROOT . '/framework/lib/preferences.php';
     self::$prefs = new PreferenceCollection(array(self::$tmp_path));
     self::$prefs->read('cache', true, self::$tmp_path);
     Timer::start();
 }