Пример #1
0
 public function __construct($migrations = false)
 {
     $config = (include "system/engine/config-default.php");
     if (is_file("application/config.php")) {
         $newconfig = (include "application/config.php");
     }
     $this->config = array_merge($config, $newconfig);
     \vendor\DB\DB::$type = $config["DATABASE_TYPE"];
     if ($this->config["USE_H20_TPL"]) {
         $this->tpl = new \H2o(null, array("searchpath" => getcwd() . "/application/views/", "cache_dir" => "application/tmp/", 'cache' => 'file'));
     }
     set_error_handler("\\system\\engine\\HF_Core::error_handler");
     //set_exception_handler("\\system\\engine\\HF_Core::exception_handler");
     if (!$migrations) {
         $this->findController();
     }
 }