PHP code example of datatheke / pager-bundle
1. Go to this page and download the library: Download datatheke/pager-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
datatheke / pager-bundle example snippets
php
//...
$bundles = array(
//...
new Datatheke\Bundle\PagerBundle\DatathekePagerBundle(),
);
php
/**
* @Template()
*/
public function datagridAction()
{
$datagrid = $this->get('datatheke.datagrid')->createHttpDataGrid('MyBundle:MyEntity');
$view = $datagrid->handleRequest($this->getRequest());
return array('datagrid' => $view);
}
php
/**
* @Template()
*/
public function pagerAction()
{
$pager = $this->get('datatheke.pager')->createHttpPager('MyBundle:MyEntity');
$view = $pager->handleRequest($this->getRequest());
return array('pager' => $view);
}