Codeignitor common model codes to use in site wide controllers

Following reusable model codes are mentioned for codeignitor framework function findByField($field, $value, $tbl){ $this->db->from($tbl); $this->db->where($field, $value); $query = $this->db->get(); $result = ( $query->num_rows() >= 1 ) ? $query->row() : NULL; return $result; } function findRow...