-
☆ A M B ☆
- 2,475 Posts
Is there a way to print out the database credentials used in a given $modx/$xpdo instance? I mean, they are all defined in the config.inc.php, but it's sorta janky to include the file again just to read those vars. Is there a $xpdo->showCreds() or something?
Why am I doing this? Because I need to pass some creds to a 3rd party library and it's not practical to rewrite someone else's library.
-
☆ A M B ☆
- 2,475 Posts
Thanks Jason. It used to be that a single $xpdo instance was pegged to a single connection, so in that case it'd be easy enough to just run these methods on the particular variable in question... but if we've got multiple connections inside a single $xpdo instance, is there any way to specify one connection over another?
Thanks!