I have an extension located under ext/my_ext
. My viewhelper is located under /ext/my_agarar_template/Classes/ViewHelpers/TestViewHelper.php
.
when I try to call my viewhelper, my template says that my class doesn't exist.
My template looks like this:
{namespace p=ext\my_ext\ViewHelpers}
h1>ViewHelper-Test</h1>
<p><p:HelloWorld /></p>
Here is my error message:
Oops, an error occurred! Fluid parse error in template Standard_action_my_ext_slide_db2750e6ca45c0832d4fc312cf0618afbe9329d0, line 11 at character 5. Error: The ViewHelper "" could not be resolved. Based on your spelling, the system would load the class "ext\my_ext\ViewHelpers\TestViewHelper", however this class does not exist. (error code 1407060572). Template source chunk: More information regarding this error might be available online.
I load it via Composer and my PSR-4 looks like this:
"autoload": {
"psr-4": {
"myext\\MyExt\\": "web/typo3conf/ext/my_ext/Classes"
}
}
I don't know why my classes aren't loading.
Hope someone can help me,
thanks in advance.
composer dump-autoload
- Simon Gilli