Sure, here you go:

*/views/scripts/users/index.**phtml*

<?php
$user = new User();
$users = $user->fetchAll();
?>
<table>
   <thead>
       <th>Name</th>
       <th>Status</th>
   </thead>
   <tbody>
       <?php echo $this->collection('_row.phtml', $users->toArray()); ?>
   </tbody>
</table>

*/views/**scripts/**users/_row.phtml*

<tr>
   <td><?php echo $this->name ?></td>
   <td><?php echo $this->status ?></td>
</tr>

Matthew Weier O'Phinney wrote:
-- Jack Sleight <[EMAIL PROTECTED]> wrote
(on Tuesday, 21 August 2007, 03:42 PM +0100):
Jack -- that's a great idea. I'm noting it now for inclusion with the
Zend_View_Enhanced. Could you provide a sample use case (i.e., how you
would use it in your view script)?


--
Jack

Reply via email to