Page 1 of 1

Load Connection Strings from a config file

Posted: Fri Dec 09, 2011 6:52 am
by almeida
Hi,

I am a novice Report.Fx for Php user...

Is there a way to have a config file with the information for the mysql connection and set the .mrt file to use it?

I made several reports (.mrt) and when I have to deploy them on the user server I have to change them one-by-one...

Thanks,
Almeida

Load Connection Strings from a config file

Posted: Fri Dec 09, 2011 9:13 am
by Vladimir
Hello, Almeida

You can use the 'sti_get_connection_string()' function in the 'index.php' file to specify a connection for all reports.

Thank you.