Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Accessing a secondary DB from within SS


Go to End


2 Posts   1396 Views

Avatar
patjnr

Community Member, 102 Posts

6 October 2010 at 9:21am

Hi All

I am trying to pull resources from a secondary database into a SilverStripe site.

Here is my case;

The first will contain SS install (SS_db) and the other one (work_db) will contain data like high resolution images, maps, Google map panoramas etc. The idea here is to separate the two as I want work_db to be independent of SS in all ways possible as I want the same resources to be accessed by other systems as well.

My SS site is running but i cant find a way of connecting to my work_db to pull resources from there.
I am coming from a none SS site and this works fine, I can connect to as many external databases as I want.

Is there a way I can do this using SS.

All help will be appreciated

thx

PJ

Avatar
bummzack

Community Member, 904 Posts

7 October 2010 at 12:51am

Replied in another thread with a solution that worked for me: http://silverstripe.org/customising-the-cms/show/290174?start=0#post293308