protected function addCollection()
    {
        $this->controlAccess('collection_add');

        if ($this->collection->add($this->getSubmitted())) {
            $this->redirect('admin/content/collection', $this->text('Collection has been added'), 'success');
        }

        $this->redirect('', $this->text('Collection has not been added'), 'danger');
    }
protected function addCollection()
    {
        $this->controlAccess('collection_add');

        if ($this->collection->add($this->getSubmitted())) {
            $this->redirect('admin/content/collection', $this->text('Collection has been added'), 'success');
        }

        $this->redirect('', $this->text('Collection has not been added'), 'danger');
    }
protected function addCollection ( ) { $ this -> controlAccess ( 'collection_add' ) ; if ( $ this -> collection -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/content/collection' , $ this -> text ( 'Collection has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Collection has not been added' ) , 'danger' ) ; }
Adds a new collection
Adds a new collection