/** * @return string */ public function operation() { if ($sResult = parent::operation()) { $aVariables = array(); $aVariables['subject'] = "[PadCMS] Your account has been " . ($sResult == 'update' ? 'updated' : 'created') . "."; $aVariables['emails'] = $this->controls['email']->getValue(); $aVariables['firstname'] = $this->controls['first_name']->getValue(); $aVariables['service_url'] = $this->config->common->base_domain_protocol . $this->config->common->base_domain; $aVariables['login'] = $this->controls['login']->getValue(); $aVariables['password'] = $this->controls['password']->getValue(); $this->actionController->getHelper('mailer')->send('notifications', $aVariables); } return $sResult; }
/** * @return string */ public function operation() { return parent::operation(); }