Most of all I use partialLoop () to generate tables. But sometimes for simple data that does not require formatting, I use my simple view helper: https://gist.github.com/812481 . Using:
<?php echo $this->table()->setRows($rows); ?>
or...
<?php echo $this->table(null, $rows); ?>
$rows , toArray (Zend_Db_Table_Rowset, Doctrine_Collection ..). : , , :
echo $this->table()
->setCaption('List of something')
->setAttributes(array('class' => 'mytable', 'id' => 'currenciesList'))
->setColumns(array(
'currency' => 'Currency',
'rate' => 'Rate',
'edit_options' => ''
))
->setCellContent(
'<a href="/currency/delete/{id}" class="deleteLink">Delete</a>', 'edit_options'
)
->setFooter('Something to write in footer...')
->setEmptyRowContent('Nothing found')
->setRows($rows);
, partialLoop, - Zend_Date, Zend_Currency .