there is a page which shows records from webpage, and using pagination for this page so i'm using in controller
$config['per_page']=$sitepage;
$limit=$page;
$pagesize= $config['per_page'];
$config['display_pages'] = FALSE;
$config['first_link'] = '<img src="'.base_url().'images/first.gif" title="first" /> ';
$config['prev_link'] = '<img src="'.base_url().'images/left.gif" title="prev"/>';
$config['next_link'] = '<img src="'.base_url().'images/right.gif" title="next" />';
$config['last_link'] = '<img src="'.base_url().'images/last.gif" title="last" />';
$this->pagination->initialize($config);
but if there are only 10 records and my pagination is 5 then only next
is being displayed where as i need all the links to be displayed.
If you set false to display pages, then links won't displayed.
$config['display_pages'] = FALSE;
Remove this line in your code.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.