cakephp/cakephp — pull request #1031 by krolow (2012-12-17 04:22:12+00:00)
Title: Paginator Sort, displaying related model field more friendly

I was checking if someone already asked this behavior and I could found this Ticket #2495

The idea is to show the model that is related with the field in a more friendly way in the Paginator sort link.

right now:

$this->Paginator->sort('Model.field');

output

Model.field

new way:

$this->Paginator->sort('Model.field');

output

Model Field

I know that it's possible do it as a second parameter, but several times, I want to just bake something and I think with space instead of dot make it more presentable and user friendly.

So I change the code to attend this, I have also write test.