Created
September 13, 2013 17:48
-
-
Save rsanchez/6553852 to your computer and use it in GitHub Desktop.
create a standalone clone of the EE db object (useful when doing nested active record calls)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$db = ee()->load->database(array( | |
'dbdriver' => 'mysql', | |
'conn_id' => ee()->db->conn_id, | |
'database' => ee()->db->database, | |
'dbprefix' => ee()->db->dbprefix, | |
), TRUE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment