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
You dont actually have to have the from either, you can include the table name in the count_all_results like so.
$this->db->count_all_results('table_name');