Re: Paginator->sort() on associated model field

2010-11-10 Thread J. Argyl Plath
No containable behavior. In investigating it further I'm tracing the first problem (line 193) to a lack of a result for $this->params($model) on line 192 of CORE/cake/libs/view/helpers/ paginator.php I debug'd $this->params and got this: Array ( [controller] => users [action] => index

Re: Paginator->sort() on associated model field

2010-11-10 Thread Shaz
Are you using any containable behavior? Or is the data being passed along correctly when using $this->Paginate() - the main error that jumps out me is: Argument #2 is not an array. On Nov 9, 6:43 pm, "J. Argyl Plath" wrote: > My User model belongsTo Department. When looking at a view of Users > I

Paginator->sort() on associated model field

2010-11-09 Thread J. Argyl Plath
My User model belongsTo Department. When looking at a view of Users I'd like to sort the Department column by the name of the department, not the department_id. According to the API for 1.3.5 the appropriate way to do this is: $this->Paginator->sort(__('Department', true), 'name', array('model' =