[TYPO3] userFunc not called correctly
Antonio Alvarez
aalvarez at igalia.com
Wed Jun 25 11:23:44 CEST 2008
On mié, 2008-06-25 at 02:09 -0700, Michael Niemann wrote:
> Hello,
>
> after another night of testing I figured out that there is a problem with the actual function call. When I add a constructor containing an echo output to the class this output is generated. So the constructor is called but the function isn't.
>
> Again here is the code. Maybe someone cann tell me what's wrong with it:
>
> page.includeLibs.some_other_random_id_string1 = fileadmin/scripts/user_test.php
> .....
> itemArrayProcFunc = user_test->user_myfunc
>
> And here is the php code from user_test.php:
>
> class user_test{
> function user_test() {echo "test";}
> function user_myFunc($menuArr, $conf){
> echo "gotcha";
> }
> }
>
> When commenting out the constructor the function isn't called either.
Try the next code:
includeLibs.user_test = fileadmin/scripts/user_test.php
page.20 = TEXT
page.20.postUserFunc = user_test->user_myfunc
# itemArrayProcFunc = user_test->user_myfunc
¿Can you read "gotcha"?
Regards.
--
Antonio Álvarez Feijoo
Computer Science Engineer
mailto:aalvarez at igalia.com
Igalia - http://www.igalia.com
More information about the TYPO3-english
mailing list