views:

99

answers:

1

Hello my friends,

I´m using find() to retrieve a value from the database, but It returns an array with the objects, I would like that it return to me just the object like fetchRow returns, is there any change or similar thing to do?

Thanks, and best regard´s.

+1  A: 

Well, It was so simple, for those that are in doubt, the solution is:

Zend_Loader::loadClass('News');

$db = new News();
$row = $db->find($id)->current();

That´s it, thanks.

Rodrigo Ferrari