A customer came up with the request to make the LeftPanel more “sexy” - so who am I to deny such wishes.
I’ve created a Plugin and involved ChatGPT to support me. It’s fun, but we failed.
I hope someone can help me with the Code we came up with.
- I’ve created a folder: plugins/MyPluginBundle/
- I’ve created the MyPluginBundle.php with the following content:
<?php
declare(strict_types=1);
namespace MauticPlugin\MyPluginBundle;
use Mautic\PluginBundle\Bundle\PluginBundleBase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class MyPluginBundle extends PluginBundleBase
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->setParameter('mautic.template.path', '/plugins/MyPluginBundle/Views/');
}
}
- I’ve created a folder /plugins/MyPluginBundle/Config and a config.php with the following content:
<?php
declare(strict_types=1);
return [
'name' => 'Test',
'description' => 'Powered by ChatGPT',
'version' => '1.0.0',
'author' => 'ChatGPT and me',
'routes' => [
],
];
- I’ve copied /app/bundles/CoreBundle/Views/LeftPanel/ to /plugins/MyPluginBundle/Views/LeftPanel/
- Cleared cache
- Nothing happend
What did I do wrong? Is this even possible?
Thank’s alot for you help - very very appriciated.