[TYPO3-dev] BE module code executed in frontend...
Christian Welzel
gawain at camlann.de
Mon Nov 24 13:04:50 CET 2008
Hi there,
i have a problem that drives me crazy.
I made a BE module for my extension named "mod_kz". It works like DAM
(a mod_main for a section header, and then mod1 and mod_kz as submodules).
I include the modules in ext_tables.php like this:
if (TYPO3_MODE=="BE") {
if (!isset($TBE_MODULES['usercybersaxM1'])) {
$temp_TBE_MODULES = array();
foreach($TBE_MODULES as $key => $val) {
if ($key=='usercybersaxM1') {
$temp_TBE_MODULES[$key] = $val;
$temp_TBE_MODULES['usercybersaxM1'] = $val;
} else {
$temp_TBE_MODULES[$key] = $val;
}
}
$TBE_MODULES = $temp_TBE_MODULES;
unset($temp_TBE_MODULES);
}
t3lib_extMgm::addModule('usercybersaxM1','','',t3lib_extMgm::extPath($_EXTKEY).'mod_main/');
t3lib_extMgm::addModule('usercybersaxM1',"ucybersaxM1","",t3lib_extMgm::extPath($_EXTKEY)."mod1/");
# t3lib_extMgm::addModule('usercybersaxM1',"ucybersaxM2","",t3lib_extMgm::extPath($_EXTKEY)."mod_kz/");
}
As you see, the module is not included and is not shown in the backend. Thats
correct. But if a call the frontend, i get this error:
Warning: require_once(../../../../typo3/init.php) [function.require-once]: failed to open stream: Operation
not permitted in /var/lib/typo3-dummy/typo3conf/ext/user_cybersax/mod_kz/class.tx_usercybersax_kz_navframe.php on line 5
So, my question: why executes the frontend code of backend modules even if these module
isn't activeted? And why does this behavoir remain, if i rename the whole module directory
from "mod_kz" to "foobar" (the error above changes accordingly)?
Is there some magic module finding code in there?
--
MfG, Christian Welzel
GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
More information about the TYPO3-dev
mailing list