Hi!

Christopher wrote:
> To come back to the problem: The docs are correct by saying that it ONLY 
> works correctly, if the code is directly(!) written in localconf.php.

It is an example!

> Adding the code using include/require(_once)() in localconf only works when 
> calling the page for the very first time.

localconf.php works every time when anything is called in TYPO3 (every page, BE 
or FE). require_once is necessary to let Install tool work properly, it 
sometimes includes this file more than once. If there is a function with the 
same name, there will be a PHP error. "once" means "once during this HTTP 
request.

> After that, the condition does no longer work correctly.
> Same with adding the code or an include/require(_once)() to extTables.php.

The reason must be different.

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: 
http://typo3bloke.net/post-details/how_will_i_fix_bugs_in_extensions_from_now_on/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Reply via email to