TYPO3CMS-Reference-CoreApi icon indicating copy to clipboard operation
TYPO3CMS-Reference-CoreApi copied to clipboard

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

Open georgringer opened this issue 1 year ago • 5 comments

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');
    }

georgringer avatar Nov 19 '24 11:11 georgringer

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

linawolf avatar Nov 23 '24 08:11 linawolf

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

georgringer avatar Nov 23 '24 10:11 georgringer

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

linawolf avatar Nov 23 '24 12:11 linawolf

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

georgringer avatar Nov 23 '24 19:11 georgringer

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

linawolf avatar Nov 24 '24 08:11 linawolf

Solved with #5080

froemken avatar Jun 14 '25 22:06 froemken