I need execute com_k2 in my template.
I would execute request or include component com_k2 at my template/index.php
site e.g. http://mydomainurl.com/index.php?product_id=2
/public_html/templates/mytemplate/index.php
code:
if(isset($_GET['product_id']) !=''){
Get com_k2 item Execute request like /index.php?option=com_k2&view=item&id=100
} else { // my default template code… }
COM_K2 source file: https://github.com/joomlaworks/k2/blob/master/administrator/components/com_k2/models/item.php