title: CodeIgniter - Single result
body: <p>I'm trying to use CodeIgniter to create a web application that show some articles.
  I extracted all articles from the DB, they are used as previews.
  Now i want to create a page that show a single article.
  The previews of the articles are shown in <strong>/articles/</strong>, i would like to show a single article in <strong>/articles/read/id</strong></p>
  
  <p>This is my code:</p>
  
  <p><strong>Controller</strong> </p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  
  class Articles extends CI_Controller
  {
  
      public function index() 
      {             
          $this-&gt;load-&gt;model('articles_model');
  
          $articles_data['data'] = $this-&gt;articles_model-&gt;select_articles();
  
          $this-&gt;load-&gt;view('header');
  
          $this-&gt;load-&gt;view('nav');
  
          $this-&gt;load-&gt;view('articles-content', $articles_data);
  
          $this-&gt;load-&gt;view('footer');
  
      }
  
      public function read()
      {
          //?????
      }
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  
  class Articles_model extends CI_Model 
  {
  
      public function select_articles()
      {
          $this-&gt;db-&gt;select('*');
          $this-&gt;db-&gt;from('articles');
          $this-&gt;db-&gt;join('authors', 'articles.id_author = authors.id_author', 'left');
          $this-&gt;db-&gt;join('images', 'articles.id_image = images.id_image', 'left');
          $query = $this-&gt;db-&gt;get();
          return $query-&gt;result_array();
  
      }
  
  }
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  ?&gt;
  &lt;div id="content"&gt;
     &lt;div id="articles"&gt;
        &lt;?php foreach($data as $row){
           $limited_article = word_limiter($row['article_text'], 200);
        ?&gt;
        &lt;section class="article"&gt;
           &lt;h2&gt;&lt;?php echo $row['article_title'];?&gt;&lt;/h2&gt;
           &lt;img class="article-image" src="&lt;?php echo base_url('/assets/images/' . $row['image']) ;?&gt;"&gt;
           &lt;p class="info"&gt;Author: &lt;?php echo $row['author']; ?&gt; Date: &lt;?php echo $row['article_data'] ?&gt;&lt;/p&gt;
           &lt;p&gt;&lt;?php echo $limited_article; ?&gt;&lt;/p&gt;
        &lt;/section&gt;
        &lt;?php }?&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I do? Thanks in advance!</p>