Friday, December 11, 2015

Is the automatic direction change broken in the paginator for the latest Cake 3 release?

my index method has the following baked code.
$this->paginate = [
            'contain' => ['Users', 'Heights', 'Weights', 'Bats', 'Throws', 'PrimaryPositions', 'SecondaryPositions']
        ];
    $this->set ( 'players', $this->paginate ( $this->Players ) );

And my index.ctp is the standard baked template with the following sort link:
  <th><?= $this->Paginator->sort('username') ?></th>

According to the documentation, if I click the title Username, it should default to ASC, then Alternate between ASC and DESC.
Mine never alternates...

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: