protected function deleteCategory()
    {
        $this->controlAccess('category_delete');

        if ($this->category->delete($this->data_category['category_id'])) {
            $url = "admin/content/category/{$this->data_category_group['category_group_id']}";
            $this->redirect($url, $this->text('Category has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Category has not been deleted'), 'warning');
    }
protected function deleteCategory()
    {
        $this->controlAccess('category_delete');

        if ($this->category->delete($this->data_category['category_id'])) {
            $url = "admin/content/category/{$this->data_category_group['category_group_id']}";
            $this->redirect($url, $this->text('Category has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Category has not been deleted'), 'warning');
    }
protected function deleteCategory ( ) { $ this -> controlAccess ( 'category_delete' ) ; if ( $ this -> category -> delete ( $ this -> data_category [ 'category_id' ] ) ) { $ url = "admin/content/category/{$this->data_category_group['category_group_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'Category has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Category has not been deleted' ) , 'warning' ) ; }
Deletes a category
Deletes a category