protected function addTrigger()
    {
        $this->controlAccess('trigger_add');

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

        $this->redirect('', $this->text('Trigger has not been added'), 'warning');
    }
protected function addTrigger()
    {
        $this->controlAccess('trigger_add');

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

        $this->redirect('', $this->text('Trigger has not been added'), 'warning');
    }
protected function addTrigger ( ) { $ this -> controlAccess ( 'trigger_add' ) ; if ( $ this -> trigger -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/settings/trigger' , $ this -> text ( 'Trigger has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Trigger has not been added' ) , 'warning' ) ; }
Adds a new trigger
Adds a new trigger