Jump to content

Recommended Posts

Hello,

 

For a new project have I got the following situation:

 

A customer has an existing CMS system that grew over the years. Additional desktop programs where written to allow for easier, quicker editing (VB app that interfaces with the CMS db)

 

Problem: The customer asked us to write a new CMS system that fully integrated their workflow. So, only the CMS system is going to be replaced and thus the existing database structure can not be modified nor can it's data be copied as the VB apps would become obsolete (unless these would be updated to which is unlikely as the budget will not allow it)

 

Now I don't believe I need to write a new CMS from scratch as it's class structure allows for much flexibility and my current solution uses a Factory Method- and Façade pattern. Where the Façade contains all the database calls (not sure this is a good thing) and the Factory Method instantiates the appropriate Façade depending on the underlying database structure. The Façade itself would use the CMS specific models and take the necessary steps to retrieve the required data which is why I choose for the Façade pattern.

 

Do you know any better solution then this one?

 

 

Link to comment
https://forums.phpfreaks.com/topic/177707-two-different-databases-one-application/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.