public function websiteSaveAction() { $data = Zend_Json::decode($this->_getParam("data")); // convert all special characters to their entities to ensure that Zend_Config can write it foreach ($data as &$setting) { $setting["data"] = htmlspecialchars($setting["data"], ENT_COMPAT, "UTF-8"); } $config = new Zend_Config($data, true); $writer = new Zend_Config_Writer_Xml(array("config" => $config, "filename" => PIMCORE_CONFIGURATION_DIRECTORY . "/website.xml")); $writer->write(); // clear cache Pimcore_Model_Cache::clearTags(array("output", "system")); $this->_helper->json(array("success" => true)); }
/** * @return void */ public function clearDependedCache() { Pimcore_Model_Cache::clearTags(array("translator", "translate")); }