[TYPO3-dev] where is the webroot in a backend module?

bernd wilke t3ng at bernd-wilke.net
Mon Jan 20 15:58:55 CET 2014


Am 20.01.14 09:23, schrieb bernd wilke:
> I'm still developing my BE-extension (without extbase).
> now the problem occurs that I don't know where the webroot or fileadmin is.
> as my installtion includes the TYPO3 sources via symlink it is not ../
> from the context of the BE-module.
> the BE-module is executed from typo3_src-6.1.7/typo3 which does not
> include the ppath to the webroot.
>
> trying to set
> $BACK_PATH='../../../../typo3/';
> in EXT:myext/mod1/conf.php does not really help as it results in the
> wrong folder for $GLOBALS['BACK_PATH'].

different pathes defined as constants in TYPO3:
http://docs.typo3.org/TYPO3/CoreApiReference/ApiOverview/GlobalValues/Constants/Index.html

bernd
-- 
http://www.pi-phi.de/cheatsheet.html



More information about the TYPO3-dev mailing list