loadIni($path); } } return $config; } $config = configFactory(); R::setup('sqlite:' . $config->main->dbPath); #R::dependencies(['tag' => ['post'], 'post' => ['user']]); //wire models \Chibi\AutoLoader::init([$config->chibi->userCodeDir, __DIR__]); foreach (\Chibi\AutoLoader::getAllIncludablePaths() as $path) if (preg_match('/Model/', $path)) \Chibi\AutoLoader::safeInclude($path);