$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');

if ($option == "com_k2" && $view == "item")
{
	$K2Itemid = JRequest::getInt('id');
	$db = JFactory::getDBO();
	$db->setQuery("SELECT catid FROM #__k2_items WHERE id = ".$K2Itemid);
	$K2Catid = $db->loadResult();
	

}
Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.