Skip to Main Content
Home

Richard@Home

Filtering out the crap so you don't have to
  • Portfolio
  • About
  • Life Feed
  • Contact
Home

Paginator

Richard's picture

CakePHP: Extend PaginatorHelper to indicate sort field and direction

Posted Thu, 05/28/2009 - 21:07 by Richard

Here's a quick piece of code that extends the default CakePHP PaginatorHelper
to add css classes to the sort column links to indicate which field is being sorted by,
and which direction:

/app/views/helpers/ex_paginator.php:

  • Richard's blog
  • Add new comment
  • Read more

Tags in Richard@Home

CakePHP GeekUp Helper MySQL Pagination Paginator PHP presentation routing Sheffield Sort truncate
more tags

Recently on Richard@Home

  • CakePHP: Extend PaginatorHelper to indicate sort field and direction
  • CakePHP: Smarter links
  • Quick CakePHP Tip: Prefix/Admin Routing and form->create()
  • CakePHP Quick tip: Adding CSS links to $scripts_for_layout in 1.3
  • MySQL: Disable foreign keys while updating database
  • CakePHP: Pagination with Containable
  • einstein_www
  • Must Have Software
  • CakePHP: Auto populating foreign key dropdown fields
  • GeekUp Sheffield April 1st: CakePHP Presentation
  • 1
  • 2
  • next ›
  • last »

Syndicate content

Syndicate

Syndicate content

free debate