Re: Copy data from one database to another
Thanks for the link! I will give it a try! Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Copy data from one database to another
Try the nate search technique: http://groups.google.com/group/cake-php/search?group=cake-php&q=switch+database+nate&qt_g=1&searchnow=Search+this+group HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Copy data from one database to another
Thanks for the answer. But the problem is, that there is an existing database with many existing tables. And I need to copy data from all of these tables. So do I really need a model for each of the tables in the existing database? Thanks, Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Copy data from one database to another
Hi Felix,Set the models to use in the $uses array in the controller:var $uses = array('Fraggle','Smurf');It's in the manual in the chapter on Controllers.Cheers,Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Copy data from one database to another
Hi there, I have 2 databases with one table each. Now I would like to copy the data from TableA in DatabaseA to TableB in DatabaseB. But how can I use two databases in the same controller? Do I really need 2 models? Thanks Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---