public function getConfig() { if (empty($this->config)) { $configPath = OnlineShop_Plugin::getConfig(true)->onlineshop_config_file; $config = new Zend_Config_Xml(PIMCORE_DOCUMENT_ROOT . $configPath, null, true); $this->config = $config; } return $this->config; }
public function settingsAction() { if ($this->getRequest()->isPost()) { OnlineShop_Plugin::setConfig($this->_getParam("onlineshop_config_file")); $this->view->onlineshop_config_file = OnlineShop_Plugin::getConfig()->onlineshop_config_file; } else { $this->view->onlineshop_config_file = OnlineShop_Plugin::getConfig()->onlineshop_config_file; } }