public function getCopyListAction() { $FILE_WEBSERVER_URL = $this->container->getParameter('FILE_WEBSERVER_URL'); $user = $this->get('security.context')->getToken()->getUser(); $request = $this->getRequest(); $conv_root_id = $request->get("conv_root_id"); $pagesize = 50; $pageindex = $request->get("pageindex"); if (empty($pageindex)) { $pageindex = 1; } $da = $this->get('we_data_access'); $conv = new \Justsy\BaseBundle\Business\Conv(); $ds = $conv->getCopyList($da, $user, $conv_root_id, $FILE_WEBSERVER_URL, $pageindex, $pagesize); $pagecount = ceil($ds["we_convers_list"]["recordcount"] / $pagesize); return $this->render('JustsyBaseBundle:CDisplayArea:copy_pagelist.html.twig', array('this' => $this, 'ds' => $ds, 'pageindex' => $pageindex, 'pagecount' => $pagecount, 'copy_id' => $conv_root_id)); }