I have used classes within my CakePHP controllers that connect to the database independently of the Cake database connection code.

I posted a snippet that will get me the database configuration details in dsn format that I can pass to the class when I create an instance of it.  If your classes accept the dsn format you can use the snippet directly, just place the function in your app_controller.php.  If you don't use the dsn format you can create a similar function that gets you the format you need based on the code in the snippet.

You can find the snippet here...

http://cakeforge.org/snippet/detail.php?type=snippet&id=115

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