When i load the model blogmodel.php it causes a white screen, but if i comment out the load model, its working.
my controller blog.php
<?php
class Blog extends CI_Controller {
public function index()
{
$this->load->model('blogmodel');
$data['links'] = array('Pages','Modules','Users');
$data['title'] = "SWAN";
$data['heading'] = "SWAN";
$data['query'] = $this->db->get('admin');
$this->load->view('blogview',$data);
}
}
?>
my model blogmodel.php
<?php
class Blogmodel extends CI_Model {
function__construct()
{
parent::__construct();
}
}
?>
I followed the user guide and I don't know what I did wrong. I've switched on the display error in php.ini.developing on 11.10 ubuntu. Tested on chrome and it gives me a server error