OK, danke schon mal für den Hinweis.
Ich habe jetzt folgendes ergänzt:
Code:
class Plugin implements BundlePluginInterface, RoutingPluginInterface
Der Ajax-Call liefert mir nun in der DevTools-Console ein:
VM1308:1 POST http://demo23/test 500 (Internal Server Error)
Wenn ich die URL "http://mycontao/test" direkt im Browser aufrufe, bekomme ich eine Contao-Fehlermeldung.
Sie sagt mir dass der Controller nicht gefunden wird:
Internal Server Error
Was ist das Problem?
The controller for URI "/test" is not callable. Controller "Imagefilter\Controller\ImagefilterController" does neither exist as service nor as class
Offenbar wird die Controller-Klasse nicht geladen.
Das hier ist meine composer.json:
Code:
{
"name": "georgpreissl/imagefilter",
"homepage":"https://github.com/georgpreissl/imagefilter",
"description": "Contao bundle to apply filters on images in the backend.",
"keywords": ["filter", "georgpreissl", "bundle", "module", "contao"],
"type": "contao-bundle",
"license": "LGPL-3.0-or-later",
"authors": [
{
"name": "Georg Preissl",
"homepage": "https://github.com/georgpreissl",
"role":"Developer"
}
],
"support":{
"website":"https://www.georg-preissl.at",
"issues":"https://github.com/georgpreissl/imagefilter/issues",
"source":"https://github.com/georgpreissl/imagefilter"
},
"require": {
"php": "^5.6|^7.0",
"contao/core-bundle": "~4.4"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
},
"conflict": {
"contao/manager-plugin": "<2.0 || >=3.0"
},
"autoload": {
"psr-4": {
"GeorgPreissl\\Imagefilter\\": "src/"
},
"classmap": [
"src/Resources/contao/"
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
]
},
"extra": {
"contao-manager-plugin": "GeorgPreissl\\Imagefilter\\ContaoManager\\Plugin"
}
}
... die müsste ja so passen, oder?
Lesezeichen