I have a regular baked pagination set to test out why my sort does not work.
<table id="bookmarks" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th><?php echo $paginator->sort('Title');?></th>
<th><?php echo $paginator->sort('Status');?></th>
<th><?php echo $paginator->sort('Note');?></th>
<th><?php echo $paginator->sort('created');?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>
</thead>
<?php
$i = 0;
foreach ($bookmarks as $bookmark):
$class = null;
if ($i++ % 2 == 0) {
$class = ' class="altrow"';
}
?>
<tr<?php echo $class;?>>
<td>
<?php echo $bookmark['Bookmark']['title']; ?>
</td>
and so on same code <td>
Now some of them Date and Created will sort ASC and DESC but the rest only
sort ASC no matter how many times I click on them. Does the data being
sorted have anything to do with it?
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---