• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database settings for Model

#1
[eluser]Webjema[/eluser]
As you know the Model can has different DB connections and hence other DB settings for these connections.
I need another DB connection for one of my Models. And I want to keep DB settings together in database.php
How can I send DB settings from database.php to Model?

I looked through database classes and found that database.php is being used once and data from that file is not being saved.
I suggest only one method - to include database.php before creating Model.
Do you have any other ideas?


Messages In This Thread
Database settings for Model - by El Forum - 09-06-2009, 01:15 PM
Database settings for Model - by El Forum - 09-06-2009, 09:43 PM
Database settings for Model - by El Forum - 09-06-2009, 10:57 PM
Database settings for Model - by El Forum - 09-06-2009, 11:04 PM
Database settings for Model - by El Forum - 09-07-2009, 09:59 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.