-- Jack Sleight <[EMAIL PROTECTED]> wrote
(on Tuesday, 21 August 2007, 04:33 PM +0100):
> Oops, made a mistake, that should be:
> 
> <?php
> $user = new User();
> $users = $user->fetchAll();
> ?>
> <table>
>     <thead>
>         <tr>
>             <th>Name</th>
>             <th>Status</th>
>         </tr>
>     </thead>
>     <tbody>
>         <?php echo $this->collection('_row.phtml', $users->toArray()); ?>

Since it's basically re-using a partial within a loop, what do you think
about calling it 'partialLoop' or 'loopPartial'? I think it would be
good to keep thenaming consistent with the functionality. Thoughts?


>     </tbody>
> </table>
> 
> 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

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to