You might want to use the Rowset->toArray() method.

 

Regards,

Bill Karwin

 

________________________________

From: José de Menezes Soares Neto [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 23, 2007 10:27 AM
To: [email protected]
Subject: [fw-general] How to print object of type Zend_Db_Table_Rowset with 
smarty?

 

How to print object of type Zend_Db_Table_Rowset with smarty?

That is the really question :))

Look:

// Album extends Zend_Db_Table
$album = new Album(); 

// I get all the rows from table ALBUM
$album = $album->fetchAll();

// Smarty assign
$smarty->assign('album', $album);

And I don´t know how to put this in the TPL file...

Reply via email to