Hot answers tagged

1

Since this is a module rather than a plugin, you need to register control panel template roots, like so: Event::on( View::class, View::EVENT_REGISTER_CP_TEMPLATE_ROOTS, function (RegisterTemplateRootsEvent $e) { $e->roots['app-module'] = __DIR__ . '/templates/cp'; } ); (I've swapped 'custom' for 'app-module' as I think it's a ...


Only top voted, non community-wiki answers of a minimum length are eligible