[TYPO3-mvc] Ajax request from backend and TYPO3_MODE
Jan Kornblum
jan.kornblum at gmx.de
Sun Nov 17 17:54:40 CET 2013
> i call a extbase controller action from both a backend module as well as from
> a frontend plugin. Inside the controller action i have to switch dependant on
> the TYPO3_MODE. But the TYPO3_MODE always seems to be "FE", even when the
> request was started from the backend. Perhaps because the request is done as
> ajax?
>
> So how should i detect the proper TYPO3_MODE in this case?
I think this is impossible because typo3 doesn't know where the request
comes from. It seems so be better to separately handle the backend
request by ajax.php and the frontend request by an eID.
Regards, Jan
More information about the TYPO3-project-typo3v4mvc
mailing list