Custom Statistics PanelsBrowser Info Environment
I was trying to register a custom stats panel to include within another of my packages however I'm running into a few issues. I've tried to follow your instructions on your website but I think I'm getting a bit confused.
I've modified your code so that it reads as follows:
$urlHelper = Loader::helper('concrete/urls');
$statsPkg = Package::getByHandle($packageHandle);
$absoluteFilePath = $urlHelper->getPackageURL($statsPkg).'/panels/popularity/';
$result = ParticleTrafficPanel::registerPanel($absoluteFilePath);
However the resulting array contains an error message 'Register panel error, invalid directory'
Any help would be greatly appreciated.
Any advice on achieving this would be greatly appreciated.