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