John
That's it. Thanks very much!!! :)
Here is the complete code with columns, if needed:
[code]
<!-- table- (column-) captions -->
<table>
<tr>
<th><?php echo $paginator->sort(array('asc' =>'id v', 'desc'
=>'id ^'), 'id'); ?></th>
<th><?php echo $paginator->sort(array('asc' =>'forename v',
'desc' =>'forename ^'), 'forename'); ?></th>
<th><?php echo $paginator->sort(array('asc' =>'surname v',
'desc' =>'surname ^'), 'surname'); ?></th>
<th><?php echo $paginator->sort(array('asc'
=>'telephon_number v', 'desc' =>'telephon_number ^'),
'telephon_number'); ?></th>
<th><?php echo $paginator->sort(array('asc' =>'e_mail v',
'desc' =>'e_mail ^'), 'e_mail'); ?></th>
<th>rooms</th>
</tr>
<!-- table content -->
<?php foreach ($staffs as $staff): ?>
<tr>
<td><?php echo $html->link($staff['Staff']['id'],
array('action' => 'edit', 'id' => $staff['Staff']['id'])); ?></td>
<td><?php echo $staff['Staff']['forename']; ?></td>
<td><?php echo $staff['Staff']['surname']; ?></td>
<td><?php echo $staff['Staff']['telephon_number']; ?></td>
<td><?php echo $staff['Staff']['e_mail']; ?></td>
<td><?php foreach ($staff['Room'] as $room): ?>
<?php echo $room['description']; ?>,
<?php endforeach; ?></td>
</tr>
<?php endforeach; ?>
</table>
[/code]
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en