I have the following code

Allow modifications is set to on so should be ok.

But the SET does not seem to be working.

Maybe cause what I need to set is an array?


            // Loop through the databases
            foreach ($databases as $k => $v) {

                $config->__set('db.dbname', $v['Database']);

$db = Zend_Db::factory($config->db_adapter, $config->db->asArray());

                Zend_Debug::dump($config->db, 'Config', true);

                // Query to retrieve the tables within the database
                $sql    = $db->query('SHOW TABLES');
                $tables = $sql->fetchAll();

                Zend_Debug::dump($tables, 'Tables', false);
            }

db.host     = localhost
db.username = root
db.password =
db.dbname   = admin
db.profiler = true
db.useSQL   = false
db_adapter  = PDO_MYSQL

Reply via email to