[TYPO3-dev] extra helper files in plugin -> how to access db ?
Henjo Hoeksma
hphoeksma at stylence.nl
Wed Jan 28 21:49:59 CET 2009
On 2009-01-28 21:19:26 +0100, Peter Russ <"peter,russ"@4many.net> said:
> --- Original Nachricht ---
> Absender: Henjo Hoeksma
> Datum: 28.01.2009 21:01:
>> Hi list,
>>
>> I have written a custom plugin using the google api.
>> This plugin uses the method of building an on-the-fly xml file with the
>
>> result of the search for correct addresses.
>> The pi1 class at some point calls to the external xml file in order to
>
>> retrieve the data.
>>
>> I couldn't find how to have this extra file (which resides in the folde
> r
>> pi1/scripts) load the default dbase variables so it's in there 'hard'.
>
>> It's not a class.
>>
>> I've searched through the different docu but I guess I am looking at th
> e
>> wrong places. Requiring init.php and config_default.php generates
>> errors, so that is not the way to do it - obviously.
>>
>> Can anybody advice on how to achieve this?
>>
>> Thanks in advance.
>>
>> Henjo
>
> If I get you right you want to know the parameters for the database of
> your TYPO3 installation -> required_once typo3conf/localconf.php
>
> That's what you're looking for?
>
> Regs. Peter.
Hi Peter,
thanks for your reply... That must be possible... Why haven't I thought
of this myself :-|
Henjo
--
Stylence | webdevelopment in style
http://www.stylence.nl
More information about the TYPO3-dev
mailing list