Hello,

>  Is is possible to read the current database host programmatically
> (i.e. the value of $default['host'] from database.php)?

Why not just use DATABASE_CONFIG::$default ? :)

However, each Model instance will have the following method:
http://api.cakephp.org/class/model#method-ModelgetDataSource
which should be better for you. I didn't use that yet, though.


Regards,
Piotr

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to