Hallo, ich mal wieder.
ich möchte gern auf ein Button unter "list.global_operations.<OPERATION>.button" ein eigenes backend-template aufrufen.
PHP-Code:
'global_operations' => array
(
'concerts_import' => array
(
'href' => 'key=concerts_import',
'class' => 'header_edit_all',
)
),
PHP-Code:
/* Backend Module */
array_insert($GLOBALS['BE_MOD']['kta-manager'], 2, array(
'concerts' => array('tables' => array('tl_concerts'),'concerts_import' => \WEBROXX\Manager\Controller\Backend\Import::class),
));
Dabei kommt es leider zu diesem Fehler
Code:
[2021-05-25 08:44:47] request.CRITICAL: Uncaught PHP Exception RuntimeException: "System::importStatic() failed because class "W" is not a valid class name or does not exist." at /www/htdocs/vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php line 271 {"exception":"[object] (RuntimeException(code: 0): System::importStatic() failed because class \"W\" is not a valid class name or does not exist. at /www/htdocs/vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:271)"} []
Ist das überhaupt so möglich, mit den neuen Callback angaben in Contao 4.9
Lesezeichen