[TYPO3-project-formidable] Re : tslib_pibase in Ajax event
Uwe Schmelzer
us at planungsgruppeinternet.de
Fri Jan 30 11:46:56 CET 2009
Hi Sanosuke303,
You don't need to include class.tslib_pibase.php.
The methods from pibase should already be avaliable in your XML-Userobj.
If not, you can try this way:
Create an FE Plugin. And use formidable from there.
Every Plugin already is an extension the tslib_pibase.
Thus the methods are available there.
class tx_YOUREXTENSIONKEY_pi1 extends tslib_pibase {
...
}
<untested>
And to access your extensions properties from a formidable userobj
you could use $this->oParent->yourFunction()
</untested>
cheers
uwe
--
Herzliche Grüsse aus Sindelfingen
Uwe Schmelzer
us at planungsgruppeinternet.de
Planungsgruppe Internet
Parkstrasse 20
71063 Sindelfingen
Tel. 07031 / 704 089
Fax: 01805 / 233 633-00745
Sanosuke303 schrieb:
> Hi list!
>
> No body has an idea to solve my tslib_pibase problem?
>
> Thanks.
>
> Best regards
>
> Anthony Laplane
> Eureka Market Consulting
> http://www.eureka-market.fr
>
>> De: Sanosuke303 <sanosuke303 at yahoo.fr>
>> Hi list!
>>
>> I use tslib_pibase to call request (pi_getRecord...) in my
>> extension on form.
>> So I add
>> require_once(PATH_tslib.'class.tslib_pibase.php');
>> in my extension.
>>
>> All is ok in the form but not in ajax even. If I call
>> tslib_pibase in ajax event (onclick button), I have this
>> error message : "undefined class name
>> tslib_pibase".
>>
>> So how to add the tslib_pibase requirement without modify
>> formidable core.
>>
>> Thanks for your help.
>>
>> Best regards.
>>
>>
>>
>> _______________________________________________
>> TYPO3-project-formidable mailing list
>> TYPO3-project-formidable at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-formidable
>
>
>
More information about the TYPO3-project-formidable
mailing list