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
Related Tags
index × 33assets × 9
templating × 4
url × 3
config × 3
admin × 3
htaccess × 3
reindex × 3
plugin-development × 2
craft3 × 2
entries × 2
search × 2
entry × 2
php × 2
variable × 2
loop × 2
elementtype × 2
s3 × 2
localization × 1
control-panel × 1
structure × 1
sections × 1
filter × 1
redirect × 1
install × 1