protected function addCurrency()
    {
        $this->controlAccess('currency_add');

        if ($this->currency->add($this->getSubmitted())) {
            $this->redirect('admin/settings/currency', $this->text('Currency has been added'), 'success');
        }

        $this->redirect('', $this->text('Currency has not been added'), 'warning');
    }
protected function addCurrency()
    {
        $this->controlAccess('currency_add');

        if ($this->currency->add($this->getSubmitted())) {
            $this->redirect('admin/settings/currency', $this->text('Currency has been added'), 'success');
        }

        $this->redirect('', $this->text('Currency has not been added'), 'warning');
    }
protected function addCurrency ( ) { $ this -> controlAccess ( 'currency_add' ) ; if ( $ this -> currency -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/settings/currency' , $ this -> text ( 'Currency has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Currency has not been added' ) , 'warning' ) ; }
Adds a new currency
Adds a new currency