title: Fatal error: Non-abstract method News_model::__construct() must contain body [CodeIgniter]
body: <p>i am trying the tutorial in CodeIgniter User Guide Version 2.2.0. i just followed 
  the code pasted but i got this error message. what is really wrong here?</p>
  
  <pre><code>Fatal error: Non-abstract method News_model::__construct() must contain 
  body in /var/www/leomel/application/models/news_model.php on line 3
  </code></pre>
  
  <p>the source code:</p>
  
  <pre><code>&lt;?php
  class News extends CI_Controller {
     public function __construct()
     {
       parent::__construct();
       $this-&gt;load-&gt;model('news_model');
     }
  
     public function index()
     {
       $data['news'] = $this-&gt;news_model-&gt;get_news();
       $data['title'] = 'News archive';
  
       $this-&gt;load-&gt;view('templates/header', $data);
       $this-&gt;load-&gt;view('news/index', $data);
       $this-&gt;load-&gt;view('templates/footer');
     }
  
     public function view($slug)
     {
       $data['news'] = $this-&gt;news_model-&gt;get_news($slug);
       if (empty($data['news_item']))
       {
          show_404();
       }
  
       $data['title'] = $data['news_item']['title'];
  
       $this-&gt;load-&gt;view('templates/header', $data);
       $this-&gt;load-&gt;view('news/view', $data);
       $this-&gt;load-&gt;view('templates/footer');
     }
  }
  </code></pre>