2015-08-25 CakePHPでテーブルをソートする時のメモ CakePHP CakePHPでテーブルをソートする時のメモ。 <table> <tr> <th><?php echo $this->paginator->sort('created', '作成日');?><th> <tr> <?php foreach ($users as $user): ?> <tr> <td><?php echo $user['User']['created'];?><td> <tr> <?php endforeach; ?> </table> 参考 Paginator