[eluser]InsiteFX[/eluser]
Controller:
Code:
class Site extends CI_Controller {
function __construct()
{
parent::__construct();
}
function index()
{
$this->load->model(‘site_model’); //This is where model is loaded, but nothing done with the model yet.
$data[‘records’] = $this->site_model->getAll();
$this->load->view(‘home’, $data);
}
}
InsiteFX