public function getAll($table, $where = array()) { $data = $this->_db->get($table, $where); return $data->results(); }