View Single Post
  #1 (permalink)  
Old 06-14-2007, 06:25 PM
enkara enkara is offline
Junior Member
 
Join Date: Feb 2007
Location: Spain, you will notice in my English ^^
Posts: 10
Default asArray() problem in factory

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!
Reply With Quote