Keyword

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

  • Anh Phuong
  • Anh Phuong's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #170858 by Anh Phuong
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.

More
6 years 4 months ago #170865 by JoomlaWorks
Use this:
<?php if (file_exists(JPATH_SITE.'/components/com_k2/k2.php')): ?>
<!-- K2 is installed, do something -->
<?php endif; ?>

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


Powered by Kunena Forum