[eluser]Jim-Bingo[/eluser]
When I load my firstpage I get this message:
Quote:An Error Was Encountered
Unable to locate the model you have specified: startmodel
My controller start.php:
Code:
<?php
class Start extends Controller {
function index()
{
$this->load->model('startmodel');
$news['news'] = $this->startmodel->get_last_three_news();
$data = array(
'title' => 'Malungs OK Skogsmårdarna',
'content' => $this->load->view('content/start',$news,true)
);
$this->load->view('layout/main',$data);
}
}
?>
My model Startmodel.php:
Code:
<?php
class Startmodel extends Model {
function Startmodel()
{
parent::Model();
}
function get_last_three_news()
{
$query = $this->db->get('tbl_news', 3);
return $query->result();
}
}
?>
Anybody knows whats wrong?