KnpLabs/KnpPaginatorBundle — Issue #90: Item "sortable" for "Array" does not exist in ....
Author: tristanbes
Created: 2012-02-29 16:29:04+00:00
State: open

{{ offers.sortable('Equipe', 'o.name')|raw }}
{{ offers.sortable('Niveau', 'o.name')|raw }}

/**
* Returns the pager
*
* @param integer $page Page
* @param integer $perPage Max per page
* @param Doctrine_Query $query Query
*
* @return \Pagination
*/
public function getPager($page = 1, $perPage = 10, $query = null)
{
$paginator = $this->get('knp_paginator');

$pagination = $paginator->paginate(
$query,
$this->get('request')->query->get('page', 1),
10
);

return compact('pagination');
}

It doesn't seems to work, or maybe i'm missing something (i'm using symfony 2.1 master)?