public function saveActivity(string $config)
    {
        $debug    = $this->get("request")->get("debug");
        $cache    = $this->get("request")->get("cache");
        $compile  = $this->get("request")->get("compile");
        $force    = $this->get("request")->get("force");
        $sdebug   = $this->get("request")->get("sdebug");
        //$console  = $this->get("request")->get("console");

        if (!in_array($debug, array('true', 'false')) || !in_array($cache, array('0', '1')) ||
            !in_array($compile, array('true', 'false')) || !in_array($force, array('true', 'false')) ||
            !in_array($sdebug, array('true', 'false'))) {
            return ((new Renderer())->jsonRenderer(array("code" => 500, "msg" => "Error on smarty parameters")));
        }


        $file = JL::open(FEnv::get("framework.config").'smarty_config/smarty.json');
        if (!isset($file->$config)) {
            return ((new Renderer())->jsonRenderer(array("code" => 500, "msg" => "Error on smarty parameters")));
        }

        $file->$config->debug         = $this->setRealBoolean($debug);
        $file->$config->cache         = (int)$cache;
        $file->$config->compile_check = $this->setRealBoolean($compile);
        $file->$config->force_compile = $this->setRealBoolean($force);
        $file->$config->smarty_debug  = $this->setRealBoolean($sdebug);
        //$file->$config->console_debug = $console;

        JL::put(
            FEnv::get("framework.config")."smarty_config/smarty.json",
            json_encode($file, JSON_PRETTY_PRINT)
        );

        return ((new Renderer())->jsonRenderer(array("code" => 200, "msg" => "OK")));
    }