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

bernd wilke t3ng at bernd-wilke.net
Mon Jan 20 09:23:17 CET 2014


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'].


I think I may not initiallize the BE-module in a correct way.
what is the correct way to register a BE-module _WITHOUT_ extbase in 
TYPO3 6.1 ?


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



More information about the TYPO3-dev mailing list