$installer = new JInstaller;
$isntaller->install('path_to_package');
if(JFile::exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/library/cb/cb.installer.php')) {
require_once(JPATH_ADMINISTRATOR . '/components/com_comprofiler/library/cb/cb.installer.php');
$cbInstaller = new cbInstallerPlugin();
$cbInstaller->install($parent->getParent()->getPath('source').'/components/com_comprofiler/plugin/user/plug_hotspots');
}
Please Log in to join the conversation.
Please Log in to join the conversation.
if(JFile::exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/library/cb/cb.installer.php')) {
global $_CB_framework;
require_once(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php');
require_once(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.class.php');
require_once(JPATH_ADMINISTRATOR . '/components/com_comprofiler/comprofiler.class.php');
require_once(JPATH_ADMINISTRATOR . '/components/com_comprofiler/library/cb/cb.installer.php');
$cbInstaller = new cbInstallerPlugin();
if($cbInstaller->install($parent->getParent()->getPath('source').'/components/com_comprofiler/plugin/user/plug_hotspots/'))
{
// do something
}
}
Please Log in to join the conversation.
Please Log in to join the conversation.