Hi cwsTrummer,

Here's some code to generate the DSN so that you don't need to hardcode
the Db settings in the component:

$this->db =& ConnectionManager::getDataSource('default');
$config = $this->db->config;
$dsn =
$config['driver']."://".$config['login'].":".$config['password']."@".$config['host']."/".$config['database'];


Cheers,

AD7six


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to