Example #1
0
 public function __construct()
 {
     $system = CoreLoader::$system;
     date_default_timezone_set($system['default_timezone']);
     $this->registerErrorHandle();
     $this->router = CoreInput::$router;
     $this->input = new CoreInput();
     $this->model = new CoreModelLoader();
     $this->lib = new CoreLibLoader();
     $this->rule = new CoreRule();
     $this->cache = phpFastCache::getInstance($system['cache_config']['storage'], $system['cache_config']);
     if ($system['autoload_db']) {
         $this->database();
     }
     if (!empty($system['language'])) {
         self::$locale = new CoreLocale($system['language']);
     }
     Fn::stripslashes_all();
 }