public function emptyTable($table) { $connection = $this->di->get('db'); $success = $connection->delete($table); return $success; }