public function emptyTrash()
    {
        $this->loadModel('Comment.Comments');
        $this->Comments->deleteAll(['Comments.status' => 'trash', 'Comments.table_alias' => $this->_manageTable]);
        $this->Flash->success(__d('comment', 'All comments in trash were successfully removed!'));
        $this->title(__d('comment', 'Empty Trash'));
        $this->redirect($this->referer());
    }
public function emptyTrash()
    {
        $this->loadModel('Comment.Comments');
        $this->Comments->deleteAll(['Comments.status' => 'trash', 'Comments.table_alias' => $this->_manageTable]);
        $this->Flash->success(__d('comment', 'All comments in trash were successfully removed!'));
        $this->title(__d('comment', 'Empty Trash'));
        $this->redirect($this->referer());
    }
public function emptyTrash ( ) { $ this -> loadModel ( 'Comment.Comments' ) ; $ this -> Comments -> deleteAll ( [ 'Comments.status' => 'trash' , 'Comments.table_alias' => $ this -> _manageTable ] ) ; $ this -> Flash -> success ( __d ( 'comment' , 'All comments in trash were successfully removed!' ) ) ; $ this -> title ( __d ( 'comment' , 'Empty Trash' ) ) ; $ this -> redirect ( $ this -> referer ( ) ) ; }
Permanently deletes all comments marked as "trash".

@return void Redirects to previous page
Permanently deletes all comments marked as trash .