settemplatedir(BASE_PATH . '/resources/conf/'); $smarty->setcompiledir(BASE_PATH . '/storage/framework/smarty/compile/'); $smarty->setcachedir(BASE_PATH . '/storage/framework/smarty/cache/'); $smarty->registerClass('config', Config::class); return $smarty; } }