protected function addStore()
    {
        $this->controlAccess('store_add');

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

        $this->redirect('', $this->text('Store has not been added'), 'warning');
    }
protected function addStore()
    {
        $this->controlAccess('store_add');

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

        $this->redirect('', $this->text('Store has not been added'), 'warning');
    }
protected function addStore ( ) { $ this -> controlAccess ( 'store_add' ) ; if ( $ this -> store -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/settings/store' , $ this -> text ( 'Store has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Store has not been added' ) , 'warning' ) ; }
Adds a new store
Adds a new store