Friday, December 11, 2015

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

What "is" your latest cake3 release?
Are you referring to 3.0 or 3.1?

I highly doubt that, there are tests for this behavior.
Are there any links outputted at all?
What do they say?
You need to be more exact in your statements, or it is hard to say anything here.

mark



Am Freitag, 11. Dezember 2015 12:09:45 UTC+1 schrieb heavyKevy:
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: