Improve link labels pages navigation

This commit is contained in:
Frederic Guillot
2017-01-08 21:18:54 -05:00
parent 47f4bceb1a
commit 0960a4d0b0
7 changed files with 82 additions and 72 deletions

View File

@@ -19,9 +19,9 @@ class CurrencyController extends BaseController
{
$this->response->html($this->helper->layout->config('currency/show', array(
'application_currency' => $this->configModel->get('application_currency'),
'rates' => $this->currencyModel->getAll(),
'currencies' => $this->currencyModel->getCurrencies(),
'title' => t('Settings').' > '.t('Currency rates'),
'rates' => $this->currencyModel->getAll(),
'currencies' => $this->currencyModel->getCurrencies(),
'title' => t('Settings') . ' > ' . t('Currency rates'),
)));
}
@@ -34,9 +34,9 @@ class CurrencyController extends BaseController
*/
public function create(array $values = array(), array $errors = array())
{
$this->response->html($this->helper->layout->config('currency/create', array(
'values' => $values,
'errors' => $errors,
$this->response->html($this->template->render('currency/create', array(
'values' => $values,
'errors' => $errors,
'currencies' => $this->currencyModel->getCurrencies(),
)));
}
@@ -77,9 +77,9 @@ class CurrencyController extends BaseController
$values['application_currency'] = $this->configModel->get('application_currency');
}
$this->response->html($this->helper->layout->config('currency/change', array(
'values' => $values,
'errors' => $errors,
$this->response->html($this->template->render('currency/change', array(
'values' => $values,
'errors' => $errors,
'currencies' => $this->currencyModel->getCurrencies(),
)));
}