Holas.
Para el constructor pone asi:
Código PHP:
Ver original<?php
class Helloworld_model extends CI_Model
{
public function __construct()
{
// Call the Model constructor
parent::__construct();
}
public function getData()
{
//Query the data table for every record and row
$query = $this->db->get('data');
if ($query->num_rows() > 0) {
return $query->result();
} else {
//show_error('Database is empty!');
}
}
}
Saludos