I\'m working with the latest codeIgniter released, and i\'m also working with jquery datatables from datatables.net
codeIgniter
jquery
datatables
datatables.net
I
Count first with no_reset_flag.
$this->db->count_all_results('', FALSE); $rows = $this->db->get()->result_array();
system/database/DB_query_builder.php
public function count_all_results($table = '', $reset = TRUE) { ... }