Hi! I'm updating to ZF 1.0.0 and there's a thing that I don't understand why it doesn't work. The problem is in asArray().
The error is the following:
Fatal error: Call to undefined method Zend_Config::asArray() in C:\Archivos de programa\xampp\htdocs\school\index.php on line 28
the code:
PHP Code:
$config = new Zend_Config_Ini('./application/config.ini', 'general');
$registry = Zend_Registry::getInstance();
$registry->set('config', $config);
$db = Zend_Db::factory($config->db->adapter, $config->db->config->asArray());
Zend_Db_Table::setDefaultAdapter($db);
Has asArray() disappeared? How can I do the same, without asArray()?
Thanks a lot!