For our hotspots component:
demo.compojoom.com/hotspots
we have a cb plugin that displays the last locations that a user has entered. I want to distribute this plugin together with our main component package and install it in cb while we install our component. If it was a normal plugin one could do
Code:
$installer = new JInstaller;
$isntaller->install('path_to_package');
but since it is not a normal joomla plugin, but a cb plugin I'm a little lost how to use the cb framework for this.
I tried this:
Code:
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');
}
but then I have fatal errors from missing functions etc...
Any advise on this would be much appreciated!
Thank you!
Daniel