[TYPO3-core] RFC: #4155 / userFunc in conditions / t3lib_div::callUserFunction

Michael Stucki michael at typo3.org
Fri Sep 8 09:08:19 CEST 2006


Hi Wolfgang,

>  I found another problem here (don't know why it didn't come up
>  by my first tests).
> 
>  includeLibs.something = something
> 
>  is processed after(!) the TypoScript template is parsed, so we have no
>  such libraries (= classes) available at this time.

I know.

>  Example:
> ---------
> includeLibs.mylib = EXT:user_mylib/mylib.php
> 
> [userFunc = user_mylib->test(param)]
> # do something
> [global]
> ---------
>  will not work under all circumstances, as class 'user_mylib' may not be
>  available at this point and is not automatically loaded
>  (because there's no info from where to load it without the config array).

Yes.

>  The following two work:
> ---------
> # function defined in localconf.php, this was the only form before
> [userFunc = user_testfunc(params)]
> # absolute path to extension, file, class, method
> [userFunc = EXT:user_banner/test.php:user_test->testfunc(params)]
> ---------
> 
>  Is that sufficient?

Yes it is. This behaviour was even there before you made your change!
But if you like, you can send me some notes for TSref that point this out...

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list