TYPO3-Documentation / TYPO3CMS-Reference-CoreApi

"TYPO3 Explained": Main TYPO3 Core Document: Main classes, Security, TypoScript syntax, Extension API and much more
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/
22 stars 396 forks source link

Problem on https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us//ExtensionArchitecture/HowTo/BackendModule/CreateModuleWithExtbase.html #5058

Open georgringer opened 1 week ago

georgringer commented 1 week ago

It seems the content about new backend modules with extbase is outdated.

a working example would be

    public function indexAction(): ResponseInterface
    {
        $viewVariables = [
            'fo' => [],
        ];
        return $this->moduleTemplateFactory
            ->create($this->request)
            ->setFlashMessageQueue($this->getFlashMessageQueue())
            ->setTitle('A title')
            ->assignMultiple($viewVariables)
            ->renderResponse('AdminModule/Index');
    }
linawolf commented 1 week ago

@georgringer can you hint me at what Core change caused this to change?

georgringer commented 6 days ago

IMO there is not a single commit but this is how it is currently now done in core

linawolf commented 6 days ago

@georgringer Since when does it work this way? Is a backport to 13.4 needed? also to 12.4?

georgringer commented 6 days ago

i just used the example in 13.4 and didn't work, therefore I guess at least 13.4

linawolf commented 6 days ago

I think this is the same issue: https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/issues/4962