protected function deletePage()
    {
        $this->controlAccess('page_delete');

        if ($this->page->delete($this->data_page['page_id'])) {
            $this->redirect('admin/content/page', $this->text('Page has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Page has not been deleted'), 'warning');
    }
protected function deletePage()
    {
        $this->controlAccess('page_delete');

        if ($this->page->delete($this->data_page['page_id'])) {
            $this->redirect('admin/content/page', $this->text('Page has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Page has not been deleted'), 'warning');
    }
protected function deletePage ( ) { $ this -> controlAccess ( 'page_delete' ) ; if ( $ this -> page -> delete ( $ this -> data_page [ 'page_id' ] ) ) { $ this -> redirect ( 'admin/content/page' , $ this -> text ( 'Page has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Page has not been deleted' ) , 'warning' ) ; }
Deletes a page
Deletes a page