It looks like an array within an array. Have you tried this? $values = $settings->toArray(); $form->populate($values[0]);
-- Hector On Tue, Feb 23, 2010 at 8:47 AM, MrMastermindNL <[email protected]>wrote: > > I populate the form with an array that comes from the database: > > $form->populate($settings->toArray()); > > when echoing the $settings->toArray() it gives me this: > > Array ( [0] => Array ( [id] => 1 [landing_page] => [twitter_user] => > twitter > username [twitter_password] => twitter password [fb_user] => [fb_password] > => [flickr_user] => [flickr_password] => ) ) > > So the twitter_user is in the array. But somehow it doesn't use that value, > but a session value of the logged in user of the admin module... > -- > View this message in context: > http://n4.nabble.com/Zend-form-element-name-using-underscore-problem-tp1565752p1566178.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
