protected function addUser()
    {
        $this->controlAccess('user_add');

        if ($this->user->add($this->getSubmitted())) {
            $this->redirect('admin/user/list', $this->text('User has been added'), 'success');
        }

        $this->redirect('', $this->text('User has not been added'), 'warning');
    }
protected function addUser()
    {
        $this->controlAccess('user_add');

        if ($this->user->add($this->getSubmitted())) {
            $this->redirect('admin/user/list', $this->text('User has been added'), 'success');
        }

        $this->redirect('', $this->text('User has not been added'), 'warning');
    }
protected function addUser ( ) { $ this -> controlAccess ( 'user_add' ) ; if ( $ this -> user -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/user/list' , $ this -> text ( 'User has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'User has not been added' ) , 'warning' ) ; }
Adds a new user
Adds a new user