A lot of variants: 1. Make additional connection in DATABASE_CONFIG, additional model for subscribers_table that uses new config, add save same data to new model on every successful save in original one. 2. Make additional connection in DATABASE_CONFIG and switch to it and subscribers_table in afterSave callback of original data, save data there, switch back. 3. Add custom query in afterSave callback that will copy/update data in DB_2.subscribers_table from original one. 4. Point autoresponder app to original table in original database (depends on that app). 5. Copy entire table on cron (adam way). 6. Check your RDMS possibilities for mirroring DB_1.users_table into DB_2.subscribers_table 7. Of course there can be more ways.
On Apr 21, 10:42 pm, "[email protected]" <[email protected]> wrote: > Hello guys this is my problem > i have 2 databases on the same server > > DB_1 > users_table > > DB_2 > subscribers_table > > DB_1 is my default connection,and my user model and controller are > linked to the users table on DB_1. > I have installed and autoresponder (Not a cakephp app) which uses > DB_2. > > i want to to insert the same data that goes to the users_table in DB_1 > into the subscribers_table in DB_2 ('that way people that register > into my app also get registered into the autoresponder program').. > > any clue of how to do this? > > Thanks a lot. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
