Thanks, Grant. Didn't think it would be that easy... The only issue I have is that the tables in this external database are not standard. For example student IDs are not stored in an 'id' field. However I'm sure I will get past that limitation.
Greg On Dec 3, 3:02 am, Grant Cox <[EMAIL PROTECTED]> wrote: > Connecting to multiple databases is easy. Just add the extra > connection to your /app/config/database.php, and have the appropriate > var $useDbConfig in your Student model class. > > On Dec 3, 4:54 am, Greg Baker <[EMAIL PROTECTED]> wrote: > > > How would one go about gathering information from an external > > database? My application contains all the relevant information > > required except for one 'object'....students. > > > My student information is stored in an oracle database which I can > > read from. So would I be correct to create a new model class for my > > students and override all the relevant methods for the class such as > > findAll, etc? > > > The student objects are linked using HABTM tables to the objects in > > the local database using a unique student number. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---