Heureka!
Endlich funktioniert es!
Ursache:
config/autoload.Ini Inhalt:
;;
; Configure what you want the autoload creator to register
;;
register_namespaces = true
register_classes = true
register_templates = true
;;
; Override the default configuration for certain sub directories
;;
[vendor/*]
register_namespaces = false
register_classes = false
register_templates = false
config/autoload.php Inhalt:
<?php
/**
* Register the templates
*/
TemplateLoader::addFiles(array
(
'hofff_shariff' => 'system/modules/hofff_shariff/templates',
'ce_hofff_shariff' => 'system/modules/hofff_shariff/templates',
'mod_hofff_shariff' => 'system/modules/hofff_shariff/templates',
));
Problem:
Offenbar wurden die Klassen nicht geladen.
Lösung:
Autoload-Creator von Contao die autoload.php ersetzen lassen und Systemwartung durchführen + Cache neu aufbauen.
Neuer config/autoload.php Inhalt:
<?php
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array
(
'Hofff',
));
/**
* Register the classes
*/
ClassLoader::addClasses(array
(
// Src
'Hofff\Contao\Shariff\BackendFactory' => 'system/modules/hofff_shariff/src/Hofff/Contao/Shariff/BackendFactory.php',
'Hofff\Contao\Shariff\ContentShariff' => 'system/modules/hofff_shariff/src/Hofff/Contao/Shariff/ContentShariff.php',
'Hofff\Contao\Shariff\ModuleShariff' => 'system/modules/hofff_shariff/src/Hofff/Contao/Shariff/ModuleShariff.php',
'Hofff\Contao\Shariff\Shariff' => 'system/modules/hofff_shariff/src/Hofff/Contao/Shariff/Shariff.php',
));
/**
* Register the templates
*/
TemplateLoader::addFiles(array
(
'ce_hofff_shariff' => 'system/modules/hofff_shariff/templates',
'hofff_shariff' => 'system/modules/hofff_shariff/templates',
'mod_hofff_shariff' => 'system/modules/hofff_shariff/templates',
));
Grüße,
Sluggish
Lesezeichen