Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-14-2007, 06:25 PM
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-14-2007, 07:53 PM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 99
Default

Replace asArray with toArray and would work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-14-2007, 11:22 PM
Junior Member
 
Join Date: Feb 2007
Location: Spain, you will notice in my English ^^
Posts: 10
Default

Thank you very much!! This has solved the problem ^^
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:41 PM.