protected function deleteDashboard()
    {
        $this->controlAccess('dashboard_edit');

        if ($this->dashboard->delete($this->data_dashboard['dashboard_id'])) {
            $message = $this->text('Your dashboard has been reset');
            $this->redirect('', $message, 'success');
        }

        $this->redirect('admin', $this->text('Your dashboard has not been reset'), 'warning');
    }
protected function deleteDashboard()
    {
        $this->controlAccess('dashboard_edit');

        if ($this->dashboard->delete($this->data_dashboard['dashboard_id'])) {
            $message = $this->text('Your dashboard has been reset');
            $this->redirect('', $message, 'success');
        }

        $this->redirect('admin', $this->text('Your dashboard has not been reset'), 'warning');
    }
protected function deleteDashboard ( ) { $ this -> controlAccess ( 'dashboard_edit' ) ; if ( $ this -> dashboard -> delete ( $ this -> data_dashboard [ 'dashboard_id' ] ) ) { $ message = $ this -> text ( 'Your dashboard has been reset' ) ; $ this -> redirect ( '' , $ message , 'success' ) ; } $ this -> redirect ( 'admin' , $ this -> text ( 'Your dashboard has not been reset' ) , 'warning' ) ; }
Deletes a saved a dashboard record
Deletes a saved a dashboard record