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.

General Questions /

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

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

Accessing a secondary DB from within SS


Reply


2 Posts   770 Views

Avatar
patjnr

Community Member, 101 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
banal

Community Member, 901 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