Markiert: knpBundle

Add anchor to Knp Paginator sorting link

$paginator = $this->get(‚knp_paginator‘); $pagination = $paginator->paginate( $query, $request->query->getInt(‚page‘, 1), 5 ); $pagination->setParam(‚_fragment‘, ‚anchor‘);