symfony - Error in Knp Paging -
i new in symfony , trying integrate pagination knp pagination.
i using symfony2.8. did below code in controller
$repository = $this->getdoctrine()->getrepository('adminbundle:cmspage'); $query = $repository->createquerybuilder('cmspage')->getquery(); $limit = 10; //$setting->getadminpagelimit(); //pagination $paginator = $this->container->get('knp_paginator'); $pagination = $paginator->paginate($query, $this->container->get('request')->query->get('page', 1), $limit);
i received below error
catchable fatal error: argument 1 passed knp\component\pager\paginator::__construct() must instance of symfony\component\eventdispatcher\eventdispatcher, instance of symfony\component\httpkernel\debug\traceableeventdispatcher given, called in e:\xmapp_5.6\htdocs\elite\app\cache\prod\appproddebugprojectcontainer.php on line 1423 , defined
Comments
Post a Comment