Exemplo n.º 1
0
 public static function initialize($APPPATH, $RUNTIMEPATH)
 {
     $ILEXPATH = self::getRealPath(__DIR__);
     $APPPATH = self::getRealPath($APPPATH);
     $RUNTIMEPATH = self::getRealPath($RUNTIMEPATH);
     Loader::initialize($ILEXPATH, $APPPATH, $RUNTIMEPATH);
     Constant::initialize();
 }
Exemplo n.º 2
0
 /**
  * @param string $APPPATH
  * @param string $RUNTIMEPATH
  * @param string $APPNAME
  */
 public static function initialize($APPPATH, $RUNTIMEPATH, $APPNAME)
 {
     $APPPATH = Kit::getRealPath($APPPATH);
     $ILEXPATH = Kit::getRealPath(__DIR__ . '/Base/');
     $RUNTIMEPATH = Kit::getRealPath($RUNTIMEPATH);
     /**
      * Loader::initialize() should be called before Constant::initialize(), 
      * because Loader::APPPATH() is called in Constant::initialize()
      */
     session_cache_expire(240);
     date_default_timezone_set('UTC');
     Loader::initialize($ILEXPATH, $APPPATH, $RUNTIMEPATH, $APPNAME);
     Constant::initialize();
     Debug::initialize();
 }