[TYPO3-dev] extra helper files in plugin -> how to access db ?

Peter Russ "peter,russ" at 4many.net
Wed Jan 28 21:19:26 CET 2009


--- 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 folder 
> 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 the 
> 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.


-- 
Fiat lux!
Docendo discimus.
http://www.gidf.de

_____________________________
4Many� Services

XING:	https://www.xing.com/go/invita/360052
	http://www.xing.com/go/privatemessage/Peter_Russ




More information about the TYPO3-dev mailing list