Keyword

Nicky created the topic: Detecting K2 in index.php..

  • Anh Phuong
  • Anh Phuong's Avatar Topic Author
  • Offline
  • New Member
More
2 months 1 week ago #170858 by Anh Phuong
Anh Phuong created the topic: Nicky created the topic: Detecting K2 in index.php..
Hi lads,

How I could detect with an PHP statement in the index.php file if K2 is running?. Any ideas?.

Thanks

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 1 week ago #170865 by Fotis
Fotis replied the topic: Nicky created the topic: Detecting K2 in index.php..
Use this:
<?php if (file_exists(JPATH_SITE.'/components/com_k2/k2.php')): ?>
<!-- K2 is installed, do something -->
<?php endif; ?>


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white

Powered by Kunena Forum