title: How to retrieve similar tags data from db in phalcon?
body: <p>I'm New in Phalcon. I decided to look at Phalcon php as an alternate php framework to Codeigniter. I'm Implementing a blog with tags. where first of im inserting tags value into a single column into the db. I follow tags plugin example from: <a href="https://github.com/mfiels/tagsly/blob/master/index.html" rel="nofollow">https://github.com/mfiels/tagsly/blob/master/index.html</a>
  its inserted multiple value into a single column like "php,jquery,asp,html,css".</p>
  
  <p>Now i just retrive the value from db to volt like this way:</p>
  
  <pre><code>[controller]
  
  $bloger = $this-&gt;modelsManager-&gt;executeQuery("SELECT * FROM Blogs ORDER BY Blogs.datetime DESC");
  $this-&gt;view-&gt;setVar('blogs', $bloger);
  
  [volt]        
  
  &lt;?php 
  $blogTags = array(); 
  $blogTags = $bloger-&gt;tags;
  $tags = explode(',',$blogTags); 
  foreach($tags as $taged){ ?&gt;
  &lt;a class="tags" href="blog/tag/&lt;?php echo($taged); ?&gt;"&gt;
  &lt;?php echo($taged); ?&gt; &lt;span&gt;[ 0 ]&lt;/span&gt;&lt;/a&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>Now its link like :<code>"localhost/demo/blog/tag/php"</code> or <code>"localhost/demo/blog/tag/jquery"</code>
  My Question is how could i retrieve each tags related data from db?</p>
  
  <p>I'm trying to query like this :</p>
  
  <p>[Controller]</p>
  
  <pre><code>public function tagAction($taged)
  {
  $tags = Blogs::findBytags($taged);
  $tagData = array();
  $tagData = explode(',', $tags-&gt;tags);
  $similar = Blogs::find(["tags LIKE :title:","bind"=&gt; ["title"=&gt;'%'.$tagData.'%'],"order" =&gt; "datetime DESC limit 5"]);
  $this-&gt;view-&gt;setVar('tagged', $similar);
  $this-&gt;view-&gt;pick('blog/tagline');
  }
  </code></pre>
  
  <p>[Volt]    </p>
  
  <pre><code>{% for similar in tagged %}
  {{tagged.btitle}}
  {% endfor %}
  </code></pre>
  
  <p>but its not render as expected. How could i retrieve matching data?</p>