[TYPO3-dev] Class "tx_myext_pi1" did not exist

JoH info at cybercraft.de
Tue Oct 10 16:17:15 CEST 2006


>>> [xmltop]=PAGE
>>>     [22]=USER_INT
>>>         [userFunc]=tx_myext_pi1->generate_rss
>>>     [typeNum]=333
>>>     [config]
>>>         [disableAllHeaderCode]=1
>>
>> Do you see tx_myext_pi1 under plugin node there?
>
> yes
>
> [tx_myext_pi1]=USER_INT
>     [includeLibs]=typo3conf/ext/myext/pi1/class.tx_myext_pi1.php
>     [userFunc]=tx_myext_pi1->main
> ---cut----

and here we go ;-)

You can see the difference between those USER_INT elements?
It's the "includeLibs" section, that's missing in your code.
Since USER_INT is a non cached element, it will be rendered after the rest
of the content has been finished. This is why there are no included libs
available anymore and therefor you have to include them inside the USER_INT.

You can fill it in manually or you can copy the code like this:

xmltop=PAGE
xmltop {
    22 < plugin.tx_myext_pi1
}

Should be working then ...

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com






More information about the TYPO3-dev mailing list