We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

User-defined sorting in a paginator?

I have a view which displays results in a paginator. I want to make the column headers clickable so that results can be sorted, while retaining the contents of persistent->searchParams. Is this possible?

What paginator adapter are you using?



40.7k
use Phalcon\Paginator\Adapter\Model as Paginator;