title: K2 Joomla: How to get category id from a single article page?
body: <p>I am trying to grab the category id from a single item (article) K2 page. I tried doing:</p>
  
  <pre><code>JRequest::getVar( 'catid' ) 
  </code></pre>
  
  <p>But that returns blank. I am running this code from index.php and not item.php, so I don't have access to the <code>$item</code> object.</p>
  
  <p>Any ideas?</p>