Conifgure email settings through user interface

This commit is contained in:
Frederic Guillot
2016-06-05 14:53:46 -04:00
parent a08339059b
commit cd4c09c10a
35 changed files with 213 additions and 82 deletions

View File

@@ -72,6 +72,7 @@ class ConfigController extends BaseController
public function application()
{
$this->response->html($this->helper->layout->config('config/application', array(
'mail_transports' => $this->emailClient->getAvailableTransports(),
'languages' => $this->languageModel->getLanguages(),
'timezones' => $this->timezoneModel->getTimezones(),
'date_formats' => $this->dateParser->getAvailableFormats($this->dateParser->getDateFormats()),
@@ -81,6 +82,26 @@ class ConfigController extends BaseController
)));
}
/**
* Display the email settings page
*
* @access public
*/
public function email()
{
$values = $this->configModel->getAll();
if (empty($values['mail_transport'])) {
$values['mail_transport'] = MAIL_TRANSPORT;
}
$this->response->html($this->helper->layout->config('config/email', array(
'values' => $values,
'mail_transports' => $this->emailClient->getAvailableTransports(),
'title' => t('Settings').' > '.t('Email settings'),
)));
}
/**
* Display the project settings page
*