<div class="categories index">
<h2><?php __('Categories');?></h2>
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('title');?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($categories as $category):
$class = null;
if ($i++ % 2 == 0) {
$class = ' class="altrow"';
}
?>
<tr<?php echo $class;?>>
<td><?php echo $category['Category']['id']; ?> </td>
<td><?php echo $category['Category']['title']; ?> </td>
<td class="actions">
<?php echo $this->Html->link(__('View', true), array('action' =>
'view', $category['Category']['id'])); ?>
<?php if ($admin): ?>
<?php echo $this->Html->link(__('Edit', true), array('action' =>
'edit', $category['Category']['id'])); ?>
<?php echo $this->Html->link(__('Delete', true), array('action' =>
'delete', $category['Category']['id']), null, sprintf(__('Are you sure
you want to delete # %s?', true), $category['Category']['id'])); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
On Dec 3, 5:01 pm, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Show some code?
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 3 Dec 2011, at 16:41, Jeremy Burns | Class Outfit wrote:
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment