title: Pyrocms issue : How to display Single record from table in page using tags
body: <p>I have created a plugin which brings a record from db table. Now I want to display the record into the page. I am trying to use tags but unable to get it working. How can I do that?<br>
  Here is the detail:</p>
  
  <p>Plugin</p>
  
  <pre><code>class Plugin_News extends Plugin  
  {  
     function getNewsDetails()  
     {  
      $this-&gt;load-&gt;model('news/news_m');
      $result =   $this-&gt;news_m-&gt;getNews();
  
      return $this-&gt;attribute('result',$result);
     }       
  } 
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>public function getNews()
  {       
      $id =   isset($_REQUEST['id']) ? $_REQUEST['id'] : 0;
  
      if($id &gt; 0 )
      {
          $where  =   "WHERE id = $id"; 
      }else{
          $where  =   " ";
      }
  
      $sql_query  ="    SELECT 
                          id,
                          news_title , 
                          news_description ,
                      FROM default_news 
                      $where";
      $query  =   $this-&gt;db-&gt;query($sql_query);
      return  $query-&gt;row();
  }
  </code></pre>
  
  <p>And here is how I am trying to call it</p>
  
  <pre><code>{{ News:getNews }}  
  &lt;li&gt;&lt;a href  = "http://localhost/lc/index.php/newsdetail?id={{ id }}"&gt;{{ news_title }}&lt;/a&gt;&lt;/li&gt;
  {{ /News:getNews }} 
  </code></pre>
  
  <p>And in the page newsdetails to display single record</p>
  
  <pre><code>&lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;{{ News:getNewsDetails news_title}}  &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;{{ News:getNewsDetails description }}&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>Its not working and i cant understand the right syntex and found nothing in the documentation clear</p>