Первый раз пишу приложение используя фреймворк CI. Возникла ошибка, помогите пожалуйста.
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Reviews::$reviews_model
Filename: controllers/reviews.php
Line Number: 18
Fatal error: Call to a member function get_info() on a non-object in Z:\home\knowledge.com\www\application\controllers\reviews.ph p on line 18
Контроллер
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Reviews extends CI_Controller
{
public function contruct__()
{
parent::__construct();
$this->load->model('review_model');
}
public function show_list()
{
$reviews['main'] = $this->review_model->get_info();
if($reviews == TRUE)
{
$this->display_lib->reviews($reviews);
}
else
{
echo "Database error occured";
}
}
}
?>
вот модель
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Reviews_model extends Crud
{
public function get_info()
{
$this->db->order_by('reviews_id','desc');
$this->db->limit(15);
$query = $this->db->get('reviews');
return $query->result_array();
}
}
?>
Заранее спасибо