Example #1
0
File: Kit.php Project: deale/dt
 /**
  * Старт контроллеров
  *
  * @param string $config
  * @throws DevelException
  */
 public static function createApplication($config = 'Base')
 {
     if (!file_exists(KIT_APP . '/Config/' . $config . '.php')) {
         throw new Exceptions\DevelException('_CONFIG_FILE_NF');
     }
     require_once KIT_APP . '/Config/' . $config . '.php';
     if (file_exists(KIT_APP . '/Init.php')) {
         require_once KIT_APP . '/Init.php';
     }
     self::$_load_app = true;
     Controller\FrontController::run();
 }