config = stConfig::getInstance('stMoneybookersBackend'); if ($this->getRequest()->getMethod() == sfRequest::POST) { $this->config->setFromRequest('moneybookers'); $this->config->save(); $this->setFlash('notice', 'Twoje zmiany zostały zapisane'); } $i18n = $this->getContext()->getI18n(); $this->labels = array( 'moneybookers{pay_to_email}' => $i18n->__('Login'), 'moneybookers{secret_word}' => $i18n->__('Słowo podpowiedzi'), 'moneybookers{shop_description}' => $i18n->__('Opis sklepu'), 'moneybookers{return_text}' => $i18n->__('Tekst przycisku powrotu do sklepu'), ); $this->config->load(); } public function validateIndex() { if ($this->getRequest()->getMethod() == sfRequest::POST) { stAuthUsersListener::checkModificationCredentials($this, $this->getRequest(), $this->getModuleName()); } return true; } public function handleErrorIndex() { $this->config = stConfig::getInstance('stMoneybookersBackend'); $this->config->setFromRequest('moneybookers'); $this->webRequest = new stWebRequest(); $i18n = $this->getContext()->getI18n(); $this->labels = array( 'moneybookers{pay_to_email}' => $i18n->__('Login'), 'moneybookers{secret_word}' => $i18n->__('Słowo podpowiedzi'), 'moneybookers{shop_description}' => $i18n->__('Opis sklepu'), 'moneybookers{return_text}' => $i18n->__('Tekst przycisku powrotu do sklepu'), ); return sfView::SUCCESS; } }